-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
22 lines (21 loc) · 1.3 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
language: node_js
node_js:
- '--lts'
- '10.5.0'
- '10.0.0'
- '8.0.0'
- '6.9.2'
- '6.0.0'
branch:
- master
- develop
script: npm run test
after_script: "cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js"
env:
global:
secure: "o5TeBjePFCeppsHXFJPOH3Xr/W7xybLYl+TC1B3ONl78DwN7vY5pSVRxXYH4f9FJtaiK+bVEeW/wlxwmZzBmBZ4mCV7Y4EQqVTgGoXSqVd/7q0bMcLAOwtEttDEca7a5xSMjxR0SJNz0ArHLHFuPNLgucDElpWTJxD5sNpAQ/AuEb8EEdiQRJiwmhzIrW9OHmbQao373HFWygJf71N/KsDFhoiG9Mpsehqn+RhxWOUJBLQC6UEq0tE+ZlJjX1jibQAN0yIDvuySY34mww0ggTIvYvuJO59X7R9RYI60IXaLPKcCohWA0VnxGAP4XeSvBZ6TKCsa/9lNE+GUI28e5KoZovqOYvHjBj86Q7dwkEGhSBWA7ZnQ0mhc04FKppL2bZZifwO8hAZEqL3gLAre5Cu+06SS6LX63gJUo06BgcE1fQqcMnB+aIYiFs3FAJPWN0ipi0V/tRIUK5tBOOFsUMT6028uQoQAX/UfG78VROxVlf6CqWysZQqaVHXm9BqcSgEGvcmKEPK1k2E1e/jBsVzntRaYCXH9/UCMWzvoyp0zm50V4W06HsU1bCgpdkagsMeXPIqJeG0ydiiM3/RZp0MlpFlpDnE5wEwqVL5dWG6p7vsWZ9TMAWMPfPoX5dgCNTMRIfnkyzqXXmn33jdsuICq1rX/m1hE6+aXcL7+nTso="
# 1.获取coveralls的repo_token: 登陆 https://coveralls.io/github/Froguard/json-toy,查看并复制 repo_token 值
# 2.加密repo_token:
# 本地执行:sudo gem install travis
# 然后进入到本地git仓库,并执行:travis encrypt COVERALLS_TOKEN=your_repo_token(刚刚复制的token)
# 3.编辑.travis.yml,写入 env: global: source: 将2中得到的结果填入即可