👷 — Deploy build on Gitlab page before tests

archived-develop
Luc Didry 3 years ago
parent f1cbf175a9
commit 96354f6202
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C

@ -1,14 +1,27 @@
image: weboaks/node-karma-protractor-chrome
stages:
- test
- pages
- test
# - e2e
cache:
paths:
- node_modules/
pages:
stage: pages
script:
- yarn install --pure-lockfile
- npx ng build
- mv dist/framadate/ public/
artifacts:
paths:
- public
expire_in: '2 hours'
only:
- develop
test:
stage: test
script:
@ -19,9 +32,7 @@ test:
paths:
- coverage/
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- node_modules/
policy: pull
test-build:
stage: test
@ -30,23 +41,7 @@ test-build:
- npx ng build --prod
only:
- master
pages:
stage: pages
script:
- yarn install --pure-lockfile
- npx ng build
- mv dist/framadate/ public/
artifacts:
paths:
- public
expire_in: '2 hours'
only:
- develop
cache:
key: "$CI_COMMIT_REF_NAME"
paths:
- node_modules/
policy: pull
#e2e:

Loading…
Cancel
Save