shlax/.gitlab-ci.yml

31 lines
553 B
YAML

build:
cache:
key: cache
paths: [.cache]
image: yourlabs/buildah
script:
- pip3 install -U --user -e .[cli]
- CACHE_DIR=$(pwd)/.cache python3 ./shlaxfile.py build
stage: build
#build-itself:
# cache:
# key: cache
# paths: [.cache]
# image: shlax:$CI_COMMIT_SHORT_SHA
# script: python3 ./shlaxfile.py build
# stage: test
test:
image: yourlabs/python
stage: build
script:
- pip install -U --user -e .[test]
- py.test -sv tests
pypi:
image: yourlabs/python
only: [tags]
script: pypi-release
stage: deploy