diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..4c5745ba69e423aa0114e3eeb8d6e92011c78e82 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +stages: + - build + - test + - deploy + +variables: + DOCKER_IMAGE_TAG: eval.py + +before_script: + - apt-get update -qy + - apt-get install -y python3 python3-pip + +build: + stage: build + +test: + stage: test + script: + - python3 -m unittest discover + +deploy: + stage: deploy + script: + - docker build -t eval.py:$DOCKER_IMAGE_TAG . + - docker run -p 9090:9090 eval.py:$DOCKER_IMAGE_TAG