matemat/.gitlab-ci.yml

29 lines
739 B
YAML
Raw Normal View History

2018-05-29 21:49:40 +02:00
---
image: s3lph/matemat-ci:20180710-03
2018-05-29 21:49:40 +02:00
stages:
- test
- codestyle
- deploy
2018-05-29 21:49:40 +02:00
test:
stage: test
2018-05-29 21:49:40 +02:00
script:
- pip3 install -r requirements.txt
- sudo -u matemat python3-coverage run --branch -m unittest discover matemat
- sudo -u matemat python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
codestyle:
stage: codestyle
script:
- pip3 install -r requirements.txt
- sudp -u matemat pycodestyle matemat
# - sudp -u matemat mypy --ignore-missing-imports --strict -p matemat
docker_build_push:
stage: deploy
script:
- docker build -t "s3lph/matemat:$(git rev-parse HEAD)" .
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_TOKEN registry.gitlab.com
- docker push registry.gitlab.com/s3lph/matemat