Refactor ci pipeline.
This commit is contained in:
parent
81d7a6540d
commit
5424de5d9a
100
.gitlab-ci.yml
100
.gitlab-ci.yml
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user