forked from tykayn/funky-framadate-front
66 lines
931 B
YAML
66 lines
931 B
YAML
# image: weboaks/node-karma-protractor-chrome
|
|
image: node:latest
|
|
|
|
stages:
|
|
- build
|
|
# - pages
|
|
- test
|
|
# - e2e
|
|
|
|
cache:
|
|
paths:
|
|
- node_modules/
|
|
|
|
#pages:
|
|
# stage: pages
|
|
# script:
|
|
# - yarn install --pure-lockfile
|
|
# - yarn build:prod:gitlabpage
|
|
# - mv dist/framadate/ public/
|
|
# artifacts:
|
|
# paths:
|
|
# - public
|
|
# expire_in: '2 hours'
|
|
# only:
|
|
# - develop
|
|
|
|
#test:
|
|
# stage: test
|
|
# script:
|
|
# - npm i
|
|
# - pkill Xvfb
|
|
# - npm run test:ci
|
|
# artifacts:
|
|
# paths:
|
|
# - coverage/
|
|
# cache:
|
|
# policy: pull
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- yarn install --pure-lockfile
|
|
- npx ng build --prod
|
|
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 dateList
|
|
# only:
|
|
# - master
|