Skip to content

Commit d8aae7e

Browse files
committed
Run after_success scripts only once.
1 parent 9fa26a2 commit d8aae7e

File tree

3 files changed

+536
-700
lines changed

3 files changed

+536
-700
lines changed

.travis.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ node_js:
44
- "8"
55
- "10"
66
- "node"
7+
env:
8+
- DEFAULT_NODE_VERSION=10
79
addons:
810
apt:
911
sources:
@@ -32,8 +34,12 @@ script:
3234
- npm run spec
3335
- npm run docs
3436
after_success:
35-
- npm run coveralls
36-
- ./.travis_build_pages
37+
- if [ "$TRAVIS_NODE_VERSION" == "$DEFAULT_NODE_VERSION" ]; then
38+
npm install coveralls;
39+
node_modules/.bin/nyc --reporter=text-lcov mocha |
40+
node_modules/.bin/coveralls;
41+
./.travis_build_pages;
42+
fi
3743
cache:
3844
apt: true
3945
directories:

0 commit comments

Comments
 (0)