forked from fh1ch/node-bacstack
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.travis.yml
48 lines (47 loc) · 1.09 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
language: "node_js"
jobs:
include:
- stage: test
node_js: "lts/*"
sudo: false
script:
- "npm test"
- stage: compliance
node_js: "lts/*"
services: docker
sudo: false
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.25.5/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
script:
- "npm install coveralls"
- "npm run docker"
- "cat ./reports/coverage/lcov.info | ./node_modules/.bin/coveralls"
- stage: pages
branches:
only:
- master
- /^v\d+\.\d.\d*$/
node_js: "lts/*"
sudo: false
script:
- "npm run docs"
deploy:
provider: pages
on:
branch: master
local_dir: ./docs
github_token: $GITHUB_API_KEY
skip_cleanup: true
cache:
directories:
- "node_modules"
branches:
only:
- master
- develop
- alpha
- beta
- next