diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml index e69de29..4cf6425 100644 --- a/.gitlab-ci.yaml +++ b/.gitlab-ci.yaml @@ -0,0 +1,19 @@ +stages: + - build + - deploy + +before_script: + - echo "Starting" + +after_script: + - echo "Done" + +build: + stage: build + script: + - docker build -t sprint . + +deploy: + deploy: test + script: + - docker-compose up -d diff --git a/Main/Timer.py b/Main/Timer.py deleted file mode 100644 index 0d66b04..0000000 --- a/Main/Timer.py +++ /dev/null @@ -1,28 +0,0 @@ -class Method: - def __init__(self, meth, name): - self.meth = meth - self.name = name - - def __eq__(self, other): - return self.name == other.name - - def execute(self): - self.meth() - - -class Timer: - methods = [] - - def push(self, meth): - methods.append(math) - - def polling(self): - for i in range(len(self.methods)): - methods[i].execute() - - def remove(method_name): - for method in self.methods: - if method.name == method_name: - self.methods.remove(method) - return - raise IndexError("No method in list") diff --git a/Sprint/settings.py b/Sprint/settings.py index 101b734..46d5496 100644 --- a/Sprint/settings.py +++ b/Sprint/settings.py @@ -23,8 +23,6 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "-w#*mn6*fa8a=(-c0@klx&$vl%hpiy&l(u*3%0a#2)wdt##(z2" -DEPLOY = False - # SECURITY WARNING: don't run with debug turned on in production! DEBUG = not DEPLOY diff --git a/SprintLib/utils.py b/SprintLib/utils.py index 66174b0..df682d3 100644 --- a/SprintLib/utils.py +++ b/SprintLib/utils.py @@ -8,8 +8,5 @@ def copy_content(from_dir, to_dir, exc=()): if file in exc: continue full_path = join(from_dir, file) - if isfile(full_path): - func = copyfile - else: - func = copytree + func = copyfile if isfile(full_path) else copytree func(full_path, join(to_dir, file))