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