👷 — Deploy build on Gitlab page before tests

This commit is contained in:
Luc Didry 2020-06-04 13:50:37 +02:00
parent f1cbf175a9
commit 96354f6202
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
1 changed files with 21 additions and 26 deletions

View File

@ -1,36 +1,14 @@
image: weboaks/node-karma-protractor-chrome
stages:
- test
- pages
- test
# - e2e
cache:
paths:
- node_modules/
test:
stage: test
script:
- npm i
- pkill Xvfb
- npm run test:ci
artifacts:
paths:
- coverage/
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- node_modules/
test-build:
stage: test
script:
- yarn install --pure-lockfile
- npx ng build --prod
only:
- master
pages:
stage: pages
script:
@ -43,10 +21,27 @@ pages:
expire_in: '2 hours'
only:
- develop
cache:
key: "$CI_COMMIT_REF_NAME"
test:
stage: test
script:
- npm i
- pkill Xvfb
- npm run test:ci
artifacts:
paths:
- node_modules/
- coverage/
cache:
policy: pull
test-build:
stage: test
script:
- yarn install --pure-lockfile
- npx ng build --prod
only:
- master
cache:
policy: pull
#e2e: