Enable gitlab-ci
This commit is contained in:
parent
b279760374
commit
4601ead8f8
@ -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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user