Browse Source

👷 — Deploy build on Gitlab page before tests

develop
Luc Didry 2 years ago
parent
commit
96354f6202
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
  1. 35
      .gitlab-ci.yml

35
.gitlab-ci.yml

@ -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