24 lines
435 B
YAML
24 lines
435 B
YAML
build:
|
|
cache:
|
|
key: cache
|
|
paths: [.cache]
|
|
image: quay.io/buildah/stable
|
|
script:
|
|
- dnf install -y python3-pip
|
|
- pip3 install -U --user -e .[cli]
|
|
- CACHE_DIR=$(pwd)/.cache python3 ./shlaxfile.py build
|
|
stage: build
|
|
|
|
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
|