35 lines
390 B
YAML
35 lines
390 B
YAML
|
image: hosttoday/ht-docker-node
|
||
|
|
||
|
stages:
|
||
|
- test
|
||
|
- release
|
||
|
|
||
|
variables:
|
||
|
LTS: 4
|
||
|
STABLE: stable
|
||
|
|
||
|
testLTS:
|
||
|
stage: test
|
||
|
script:
|
||
|
- nvm install $LTS
|
||
|
- npm test
|
||
|
tags:
|
||
|
- docker
|
||
|
|
||
|
testSTABLE:
|
||
|
stage: test
|
||
|
script:
|
||
|
- nvm install $STABLE
|
||
|
- npm test
|
||
|
tags:
|
||
|
- docker
|
||
|
|
||
|
release:
|
||
|
stage: release
|
||
|
script:
|
||
|
-
|
||
|
- npm -v
|
||
|
only:
|
||
|
- master
|
||
|
tags:
|
||
|
- docker
|