It will always build on python with shlax[cli] installed because that's part of the requirement: no extra dependency to use just the framework besides current Python stable release
19 lines
378 B
YAML
19 lines
378 B
YAML
build:
|
|
cache:
|
|
key: cache
|
|
paths: [.cache]
|
|
image: yourlabs/python
|
|
script: pip install -U --user -e .[cli] && CACHE_DIR=$(pwd)/.cache ./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
|