Refactor ci pipeline.

This commit is contained in:
Spencer Ofwiti 2020-12-28 13:49:15 +03:00
parent 81d7a6540d
commit 5424de5d9a

View File

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