28 lines
675 B
YAML
28 lines
675 B
YAML
---
|
|
image: s3lph/matemat-ci:20180710-02
|
|
|
|
stages:
|
|
- test
|
|
- codestyle
|
|
- deploy
|
|
|
|
test:
|
|
stage: test
|
|
script:
|
|
- pip3 install -r requirements.txt
|
|
- python3-coverage run --branch -m unittest discover matemat
|
|
- python3-coverage report -m --include 'matemat/*' --omit '*/test_*.py'
|
|
|
|
codestyle:
|
|
stage: codestyle
|
|
script:
|
|
- pip3 install -r requirements.txt
|
|
- pycodestyle 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
|