Refactor ci pipeline.

This commit is contained in:
Spencer Ofwiti 2020-12-28 14:38:34 +03:00
parent 5549821f26
commit f9785c81c9
1 changed files with 8 additions and 36 deletions

View File

@ -3,6 +3,14 @@ stages:
- build
- test
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
image: node:15-alpine3.10
variables:
@ -16,15 +24,7 @@ install_dependencies:
tags:
- docker
script:
- npm install -g @angular/cli
- npm install
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
only:
refs:
- merge_requests
@ -47,13 +47,6 @@ build:
expire_in: 1 days
paths:
- $APP_OUTPUT_PATH
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
test:karma:
stage: test
@ -75,13 +68,6 @@ test:karma:
- $OUTPUT_PATH/coverage/cobetura-coverage.xml
paths:
- coverage/
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
test:e2e:
stage: test
@ -90,13 +76,6 @@ test:e2e:
- docker
script:
- npm ng e2e
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
test:nglint:
stage: test
@ -104,10 +83,3 @@ test:nglint:
- docker
script:
- npm ng lint
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull