2020-04-16 12:34:36 +02:00
|
|
|
image: weboaks/node-karma-protractor-chrome
|
|
|
|
|
|
|
|
stages:
|
2020-06-04 13:21:07 +02:00
|
|
|
- pages
|
2020-06-04 13:50:37 +02:00
|
|
|
- test
|
2020-04-21 10:50:26 +02:00
|
|
|
# - e2e
|
2020-04-16 12:34:36 +02:00
|
|
|
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- node_modules/
|
|
|
|
|
2020-06-04 13:50:37 +02:00
|
|
|
pages:
|
|
|
|
stage: pages
|
|
|
|
script:
|
|
|
|
- yarn install --pure-lockfile
|
2020-06-04 16:04:24 +02:00
|
|
|
- npx ng build --base-href=/framadate/funky-framadate-front/
|
2020-06-04 13:50:37 +02:00
|
|
|
- mv dist/framadate/ public/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
|
|
|
expire_in: '2 hours'
|
|
|
|
only:
|
|
|
|
- develop
|
|
|
|
|
2020-02-05 15:21:28 +01:00
|
|
|
test:
|
2020-04-16 12:34:36 +02:00
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- npm i
|
|
|
|
- pkill Xvfb
|
2020-04-21 10:50:26 +02:00
|
|
|
- npm run test:ci
|
2020-04-16 12:34:36 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- coverage/
|
2020-06-04 13:21:07 +02:00
|
|
|
cache:
|
2020-06-04 13:50:37 +02:00
|
|
|
policy: pull
|
2020-04-16 12:34:36 +02:00
|
|
|
|
2020-06-04 13:21:07 +02:00
|
|
|
test-build:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- yarn install --pure-lockfile
|
|
|
|
- npx ng build --prod
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
cache:
|
|
|
|
policy: pull
|
|
|
|
|
|
|
|
#e2e:
|
|
|
|
# stage: e2e
|
|
|
|
# script:
|
|
|
|
# - npm i
|
|
|
|
# - pkill Xvfb
|
|
|
|
# - npm run e2e
|
|
|
|
|
|
|
|
#pages:
|
|
|
|
# stage: .post
|
|
|
|
# dependencies:
|
|
|
|
# - test
|
|
|
|
# script:
|
|
|
|
# - mv coverage/ public/
|
|
|
|
# artifacts:
|
|
|
|
# paths:
|
|
|
|
# - public
|
|
|
|
# expire_in: 30 days
|
|
|
|
# only:
|
|
|
|
# - master
|