gitlab ci
This commit is contained in:
parent
6bc184ed3e
commit
6a881b68c8
@ -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
|
@ -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")
|
@ -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
|
||||
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user