Test simple cache definition

parent 506a2432
......@@ -4,15 +4,14 @@ stages:
- build
- deploy
cache:
paths:
- node_modules/
npm_install:
stage: install
tags:
- nodejs
cache:
key: npm-cache
policy: push
paths:
- node_modules/
script:
- npm install
......@@ -20,11 +19,6 @@ ts_lint:
stage: test
tags:
- nodejs
cache:
key: npm-cache
policy: pull
paths:
- node_modules/
script:
- node_modules/tslint/bin/tslint -c tslint.json -p tsconfig.json
......@@ -32,19 +26,11 @@ npm_test:
stage: test
tags:
- nodejs
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
- apt-get -y update
- apt-get -y install google-chrome-stable
- npm link @angular/cli
- npm link @angular-devkit/build-angular
- npm link @angular/compiler-cli
- npm test
build:
......@@ -54,11 +40,6 @@ build:
- pipeline-caching
tags:
- nodejs
cache:
key: npm-cache
policy: pull
paths:
- node_modules/
script:
- echo $STAGING_SERVER_ENDPOINTS > src/assets/serverEndpoint.json
- npm run build:SSR
......
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