Commit d020401e authored by Florian Pagnoux's avatar Florian Pagnoux
Browse files

Cache dependencies

parent 3614551e
image: nikolaik/python-nodejs
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
key: v2-${CI_COMMIT_REF_SLUG}
paths:
- .cache/node_modules
- .cache/pip
pages:
script:
- python --version
......@@ -7,14 +16,13 @@ pages:
- pip install --editable git+https://github.com/openfisca/openfisca-core.git@params-int-node#egg=OpenFisca-Core
- openfisca serve -p 2000 &
- wget --retry-connrefused --waitretry=1 --quiet http://localhost:2000
- cd ..
- git clone https://github.com/fpagnoux/baremes-ipp-views.git
- cd baremes-ipp-views
- git checkout parsed-xlsx
- if [ -d "$CI_PROJECT_DIR/.cache/node_modules" ]; then mv $CI_PROJECT_DIR/.cache/node_modules . ; fi
- yarn && yarn build && yarn export
- mv out ../baremes-ipp-yaml/public
- cd ..
- find .
- mv node_modules $CI_PROJECT_DIR/.cache
- mv out ../public
artifacts:
paths:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment