Skip to content

Commit 67b68a9

Browse files
committed
chore(lock): add lock file to git and necessary greenkeeper plugin
1 parent 342a950 commit 67b68a9

File tree

2 files changed

+11689
-4
lines changed

2 files changed

+11689
-4
lines changed

.travis.yml

+21-4
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,35 @@ services:
44
- couchdb
55

66
node_js:
7-
- "5"
7+
- "6"
88

99
sudo: false
1010

11+
before_install:
12+
# package-lock.json was introduced in npm@5
13+
- npm install -g npm@5 # skip this if you are using node 9
14+
- npm install -g greenkeeper-lockfile@1
15+
1116
before_script:
12-
- "npm install add-cors-to-couchdb"
13-
- "./node_modules/.bin/add-cors-to-couchdb"
14-
- "npm run lint"
17+
# update package-lock.json
18+
- greenkeeper-lockfile-update
19+
# ensure correct CORS configuration of the couchdb service
20+
- npm install add-cors-to-couchdb
21+
- ./node_modules/.bin/add-cors-to-couchdb
22+
# run linter before the tests
23+
- npm run lint
24+
25+
after_script:
26+
# upload the updated package-lock.json
27+
- greenkeeper-lockfile-upload
1528

1629
script: npm test
1730

1831
branches:
1932
only:
2033
- master
2134
- /^greenkeeper/.*$/
35+
36+
env:
37+
global:
38+
- secure: "U7yqHtQrvzNob8YMh9iH34piyr4N0ZoX/G45VUuGlOoXe2gjhwHMAERRISZLtdzHawYu780SZ7g42HP2jsgwXqGGUmxLNMTFY44V19030Fn2QFEIZ30Ni/t0VRpvt1gwiAwRQJlVyKxS4B6qctf6HGm+hS2gQHnGuj4uX9WMZ8A="

0 commit comments

Comments
 (0)