31 lines
568 B
YAML
31 lines
568 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 push
|
|
stage: build
|
|
|
|
build-itself:
|
|
cache:
|
|
key: cache
|
|
paths: [.cache]
|
|
image: quay.io/yourlabs/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
|