/
.gitlab-ci.yml
51 lines (43 loc) · 990 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
image: node:latest
cache:
paths:
- node_modules/
stages:
#- build
- test
#- deploy
before_script:
- npm install -g codecov
- npm install
#build:
# stage: build
# script:
# - npm install
# artifacts:
# paths:
# - dist/
# expire_in: 1 month
test:node8:
stage: test
image: node:8
script:
- node --harmony ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --reporter test -- -R spec
- codecov --token=1765c18b-9f9d-45f8-a97e-9c7f5233f389
tags:
- docker
test:node9:
stage: test
image: node:9
script:
- node --harmony ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --reporter test -- -R spec
- codecov --token=1765c18b-9f9d-45f8-a97e-9c7f5233f389
tags:
- docker
test:node10:
stage: test
image: node:10
script:
- node --harmony ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --reporter test -- -R spec
- codecov --token=1765c18b-9f9d-45f8-a97e-9c7f5233f389
tags:
- docker