forked from tykayn/funky-framadate-front
👷 — Build and deploy on Gitlab pages
This commit is contained in:
parent
967d5bcc0c
commit
f675382218
@ -2,6 +2,7 @@ image: weboaks/node-karma-protractor-chrome
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
- pages
|
||||||
# - e2e
|
# - e2e
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
@ -17,6 +18,38 @@ test:
|
|||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- coverage/
|
- 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:
|
||||||
|
- yarn install --pure-lockfile
|
||||||
|
- npx ng build
|
||||||
|
- mv dist/framadate/ public/
|
||||||
|
dependencies:
|
||||||
|
- test
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
expire_in: '2 hours'
|
||||||
|
only:
|
||||||
|
- develop
|
||||||
|
cache:
|
||||||
|
key: "$CI_COMMIT_REF_NAME"
|
||||||
|
paths:
|
||||||
|
- node_modules/
|
||||||
|
policy: pull
|
||||||
|
|
||||||
#e2e:
|
#e2e:
|
||||||
# stage: e2e
|
# stage: e2e
|
||||||
@ -25,15 +58,15 @@ test:
|
|||||||
# - pkill Xvfb
|
# - pkill Xvfb
|
||||||
# - npm run e2e
|
# - npm run e2e
|
||||||
|
|
||||||
pages:
|
#pages:
|
||||||
stage: .post
|
# stage: .post
|
||||||
dependencies:
|
# dependencies:
|
||||||
- test
|
# - test
|
||||||
script:
|
# script:
|
||||||
- mv coverage/ public/
|
# - mv coverage/ public/
|
||||||
artifacts:
|
# artifacts:
|
||||||
paths:
|
# paths:
|
||||||
- public
|
# - public
|
||||||
expire_in: 30 days
|
# expire_in: 30 days
|
||||||
only:
|
# only:
|
||||||
- master
|
# - master
|
||||||
|
Loading…
Reference in New Issue
Block a user