38 lines
593 B
YAML
38 lines
593 B
YAML
stages:
|
|
- test
|
|
- build
|
|
- deploy
|
|
|
|
before_script:
|
|
- pipenv install --sequential -d
|
|
# --sequential hält die last auf raspberry pi unten
|
|
|
|
style:
|
|
stage: test
|
|
script:
|
|
- pipenv run flake8
|
|
|
|
complexity:
|
|
stage: test
|
|
script:
|
|
- pipenv run radon cc .
|
|
- pipenv run xenon -bB -mA -aA .
|
|
|
|
doc:
|
|
stage: build
|
|
script:
|
|
- cd doc
|
|
- pipenv run make html
|
|
- pipenv run make man
|
|
artifacts:
|
|
paths:
|
|
- doc/man/*
|
|
|
|
|
|
pex:
|
|
stage: build
|
|
script:
|
|
- pipenv run pex . -r <(pipenv lock -r) -e carom.cli:cli -o dist/carom-client
|
|
artifacts:
|
|
paths:
|
|
- dist/* |