python3-carom-client/.gitlab-ci.yml

38 lines
593 B
YAML
Raw Normal View History

2018-11-05 00:27:59 +01:00
stages:
- test
- build
- deploy
2018-11-03 16:32:41 +01:00
before_script:
2018-11-04 15:20:55 +01:00
- pipenv install --sequential -d
# --sequential hält die last auf raspberry pi unten
2018-11-05 00:27:59 +01:00
2018-11-03 16:59:49 +01:00
style:
2018-11-03 16:32:41 +01:00
stage: test
script:
- pipenv run flake8
2018-11-05 00:27:59 +01:00
2018-11-03 16:59:49 +01:00
complexity:
2018-11-03 16:32:41 +01:00
stage: test
script:
2018-11-03 16:59:49 +01:00
- pipenv run radon cc .
- pipenv run xenon -bB -mA -aA .
2018-11-05 00:27:59 +01:00
2018-11-04 15:20:55 +01:00
doc:
2018-11-05 00:27:59 +01:00
stage: build
2018-11-04 15:20:55 +01:00
script:
- cd doc
- pipenv run make html
2018-11-05 00:27:59 +01:00
- pipenv run make man
artifacts:
paths:
- doc/man/*
pex:
stage: build
script:
2018-11-05 00:50:08 +01:00
- pipenv run pex . -r <(pipenv lock -r) -e carom.cli:cli -o dist/carom-client
2018-11-05 00:27:59 +01:00
artifacts:
paths:
- dist/*