2016-05-26 19:18:14 +00:00
|
|
|
image: hosttoday/ht-docker-node
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- release
|
|
|
|
|
|
|
|
variables:
|
2016-05-26 19:19:41 +00:00
|
|
|
LTS: "4"
|
|
|
|
STABLE: "stable"
|
2016-05-26 19:18:14 +00:00
|
|
|
|
|
|
|
testLTS:
|
|
|
|
stage: test
|
|
|
|
script:
|
2016-05-26 20:37:13 +00:00
|
|
|
- npmci install $LTS
|
2016-05-26 19:18:14 +00:00
|
|
|
- npm test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
testSTABLE:
|
|
|
|
stage: test
|
|
|
|
script:
|
2016-05-26 20:37:13 +00:00
|
|
|
- npmci install $STABLE
|
2016-05-26 19:18:14 +00:00
|
|
|
- npm test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
release:
|
|
|
|
stage: release
|
|
|
|
script:
|
|
|
|
- npm -v
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- docker
|