# This file is a template, and might need editing before it works on your project.
# Official framework image. Look for the different tagged releases at:
#
https://hub.docker.com/r/library/node/tags/image: node:latest
# This folder is cached between builds
#
http://docs.gitlab.com/ce/ci/yaml/README.html#cachecache:
paths:
- node_modules/
before_script:
- npm install
stages:
- build
- intergationTest
build:
stage: build
script:
- npm run build
artifacts:
paths:
- build/
only:
- master
- dev
- /^release-.*$/
when: manual
tags:
- docker
intergationTest:
stage: intergationTest
script:
- npm test
artifacts:
paths:
- coverage/lcov-report
allow_failure: true
when: manual
only:
variables:
- $MODE == "integration_test"