Refactor ci pipeline.

This commit is contained in:
Spencer Ofwiti 2020-12-28 13:49:15 +03:00
parent 81d7a6540d
commit 5424de5d9a
1 changed files with 50 additions and 50 deletions

View File

@ -52,56 +52,56 @@ build:
- node_modules
policy: pull
test:karma:
stage: test
image: trion/ng-cli-karma
allow_failure: false
tags:
- docker
script:
- ng test --code-coverage --progress false --watch false
coverage: '/Lines \W+: (\d+\.\d+)%.*/'
artifacts:
paths:
- coverage/
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
test:e2e:
stage: test
image: trion/ng-cli-e2e
allow_failure: false
tags:
- docker
script:
- ng e2e
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
test:nglint:
stage: test
image: trion/ng-cli
tags:
- docker
script:
- ng lint
cache:
key:
files:
- package-lock.json
paths:
- node_modules
policy: pull
#test:karma:
# stage: test
# image: trion/ng-cli-karma
# allow_failure: false
# tags:
# - docker
# script:
# - ng test --code-coverage --progress false --watch false
# coverage: '/Lines \W+: (\d+\.\d+)%.*/'
# artifacts:
# paths:
# - coverage/
# cache:
# key:
# files:
# - package-lock.json
# paths:
# - node_modules
# policy: pull
#
#test:e2e:
# stage: test
# image: trion/ng-cli-e2e
# allow_failure: false
# tags:
# - docker
# script:
# - ng e2e
# cache:
# key:
# files:
# - package-lock.json
# paths:
# - node_modules
# policy: pull
#
#test:nglint:
# stage: test
# image: trion/ng-cli
# tags:
# - docker
# script:
# - ng lint
# cache:
# key:
# files:
# - package-lock.json
# paths:
# - node_modules
# policy: pull
build_app:
stage: build_and_test