Adds cache path to each job

parent 38046480
......@@ -4,11 +4,6 @@ stages:
- build
- deploy
cache:
key: npm-cache
paths:
- ./node_modules/
before_script:
- export PATH=$PATH:./node_modules/.bin/
......@@ -19,6 +14,8 @@ npm_install:
cache:
key: npm-cache
policy: push
paths:
- ./node_modules/
script:
- npm install
......@@ -29,6 +26,8 @@ ts_lint:
cache:
key: npm-cache
policy: pull
paths:
- ./node_modules/
script:
- node_modules/tslint/bin/tslint -c tslint.json -p tsconfig.json
......@@ -39,6 +38,8 @@ npm_test:
cache:
key: npm-cache
policy: pull
paths:
- ./node_modules/
script:
- curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
......@@ -56,6 +57,8 @@ build:
cache:
key: npm-cache
policy: pull
paths:
- ./node_modules/
script:
- echo $STAGING_SERVER_ENDPOINTS > src/assets/serverEndpoint.json
- npm run build:SSR
......@@ -72,6 +75,8 @@ deploy:
cache:
key: npm-cache
policy: pull
paths:
- ./node_modules/
dependencies:
- build
script:
......
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