Gitlab cache

This commit is contained in:
jpic 2020-02-16 18:21:04 +01:00
parent 82f98b41b4
commit 3f4738f432
2 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,10 @@
build: {image: yourlabs/shlax, script: ./shlaxfile.py build, stage: build}
build:
cache:
key: cache
paths: [.cache]
image: yourlabs/shlax
script: ./shlaxfile.py build
stage: build
pypi:
image: yourlabs/python
only: [tags]

View File

@ -38,7 +38,8 @@ gitlabci = GitLabCI(
build=dict(
stage='build',
image='yourlabs/shlax',
script='./shlaxfile.py -d shlax build',
script='CACHE_DIR=$(pwd)/.cache ./shlaxfile.py -d shlax build push',
cache=dict(paths=['.cache'], key='cache'),
),
test=dict(
stage='test',