Refactor ci pipeline.
This commit is contained in:
parent
3088970adc
commit
99a0c39eb7
@ -111,10 +111,10 @@ build_app:
|
|||||||
- docker
|
- docker
|
||||||
script:
|
script:
|
||||||
- npm ng build --prod
|
- npm ng build --prod
|
||||||
# after_script:
|
after_script:
|
||||||
# - mv $PROJECT_PATH/nginx.conf $PROJECT_PATH/default.conf
|
- mv $PROJECT_PATH/nginx.conf $PROJECT_PATH/default.conf
|
||||||
# - cp $PROJECT_PATH/default.conf $APP_OUTPUT_PATH
|
- cp $PROJECT_PATH/default.conf $APP_OUTPUT_PATH
|
||||||
# - cp $PROJECT_PATH/Dockerfile $APP_OUTPUT_PATH
|
- cp $PROJECT_PATH/Dockerfile $APP_OUTPUT_PATH
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "cic-staff-client-pipeline"
|
name: "cic-staff-client-pipeline"
|
||||||
expire_in: 1 days
|
expire_in: 1 days
|
||||||
@ -137,8 +137,8 @@ test_app:
|
|||||||
- apk add chromium
|
- apk add chromium
|
||||||
- export CHROME_BIN=/usr/bin/chromium-browser
|
- export CHROME_BIN=/usr/bin/chromium-browser
|
||||||
script:
|
script:
|
||||||
- ng lint
|
- npm ng lint
|
||||||
- ng test --code-coverage --watch=false --browsers=GitlabChromeHeadless
|
- npm ng test --code-coverage --watch=false --browsers=GitlabChromeHeadless
|
||||||
coverage: '/Statements\s+:\s\d+.\d+%/'
|
coverage: '/Statements\s+:\s\d+.\d+%/'
|
||||||
artifacts:
|
artifacts:
|
||||||
name: "tests-and-coverage"
|
name: "tests-and-coverage"
|
||||||
|
Loading…
Reference in New Issue
Block a user