mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
👷 — Deploy build on Gitlab page before tests
This commit is contained in:
parent
f1cbf175a9
commit
96354f6202
@ -1,36 +1,14 @@
|
|||||||
image: weboaks/node-karma-protractor-chrome
|
image: weboaks/node-karma-protractor-chrome
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
|
||||||
- pages
|
- pages
|
||||||
|
- test
|
||||||
# - e2e
|
# - e2e
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- 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:
|
pages:
|
||||||
stage: pages
|
stage: pages
|
||||||
script:
|
script:
|
||||||
@ -43,10 +21,27 @@ pages:
|
|||||||
expire_in: '2 hours'
|
expire_in: '2 hours'
|
||||||
only:
|
only:
|
||||||
- develop
|
- develop
|
||||||
cache:
|
|
||||||
key: "$CI_COMMIT_REF_NAME"
|
test:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- npm i
|
||||||
|
- pkill Xvfb
|
||||||
|
- npm run test:ci
|
||||||
|
artifacts:
|
||||||
paths:
|
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
|
policy: pull
|
||||||
|
|
||||||
#e2e:
|
#e2e:
|
||||||
|
Loading…
Reference in New Issue
Block a user