Enable gitlab-ci

This commit is contained in:
jpic 2020-04-21 21:50:45 +02:00
parent b279760374
commit 4601ead8f8

View File

@ -3,13 +3,16 @@ build:
key: cache
paths: [.cache]
image: yourlabs/shlax
script: pip install -U --user -e . && CACHE_DIR=$(pwd)/.cache ./shlaxfile.py -d
shlax build push
script: pip install -U --user -e . && CACHE_DIR=$(pwd)/.cache ./shlaxfile.py build
stage: build
test:
image: yourlabs/python
stage: build
script: pip install -U --user -e . && py.test -sv tests
pypi:
image: yourlabs/python
only: [tags]
script: pypi-release
stage: deploy
test: {image: yourlabs/python, script: 'pip install -U --user -e .[test] && py.test
-svv tests', stage: build}