-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (88 loc) · 1.71 KB
/
.travis.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: node_js
os:
# - windows
- linux
- osx
node_js:
- "lts/*"
- "12"
- "10"
- "8"
# - "6"
before_script:
- "npm install nyc@13 --global"
- "npx -h || npm install npx --global"
before_deploy:
- "rm -rf node_modules"
- "npm install"
- "npm run clean"
- "npm run build:prod"
- "npm run resource"
stages:
- lint
- test
- test-prod
- deploy
- new module test
jobs:
include:
- stage: lint
node_js: "lts/*"
os: linux
script:
- "npm run lint"
- &test
stage: test
script:
- "npm install"
- "nyc npm run test"
after_success:
- "npm install coveralls@~3.0.0 --global"
- "nyc report --reporter=text-lcov | coveralls"
- stage: test-prod
node_js:
- "lts/*"
- "10"
- "8"
os:
- linux
- osx
script:
- "npm install"
- "npm run clean && npm run build:prod && npm run resource"
- "rm -rf node_modules"
- "npm install --production"
- "node . -h"
- "node . new .script_test"
- stage: deploy
script: skip
node_js: "lts/*"
os: linux
deploy:
skip_cleanup: true
provider: npm
email: "[email protected]"
api_key: "${NPM_TOKEN}"
on:
branch: master
- stage: new module test
node_js:
- "lts/*"
- "10"
- "8"
os:
- linux
- osx
script:
- "npx arylo-init new .deploy_test"
- "npm install -g arylo-init"
- "arylo-init -h"
- <<: *test
stage: new module test
node_js:
- "lts/*"
- "10"
- "8"
os:
- linux
- osx