image: weboaks/node-karma-protractor-chrome
stages:
- test
- e2e
cache:
paths:
- node_modules/
test:
stage: test
script:
- npm i
- pkill Xvfb
- npm run test
artifacts:
- coverage/
e2e:
stage: e2e
- npm run e2e
pages:
stage: .post
dependencies:
- mv coverage/ public/
- public
expire_in: 30 days
only:
- master