add gitlab ci
This commit is contained in:
parent
ecf0666103
commit
2bc2d11a2d
35
.gitlab-ci.yml
Normal file
35
.gitlab-ci.yml
Normal file
@ -0,0 +1,35 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user