Skip to content

Commit dbfe86d

Browse files
committed
1 parent 7f9ee38 commit dbfe86d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ before_install:
4949
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
5050
npm install --save-dev [email protected]
5151
fi
52+
- |
53+
# supertest for http calls
54+
# - use 1.1.0 for Node.js < 0.10
55+
# - use 2.0.0 for Node.js < 4
56+
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -eq 0 && "$(cut -d. -f2 <<< "$TRAVIS_NODE_VERSION")" -lt 10 ]]; then
57+
npm install --save-dev [email protected]
58+
elif [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 4 ]]; then
59+
npm install --save-dev [email protected]
60+
fi
5261
# Update Node.js modules
5362
- |
5463
# Prune and rebuild node_modules

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"eslint-plugin-standard": "4.0.0",
2929
"istanbul": "0.4.5",
3030
"mocha": "5.2.0",
31-
"supertest": "1.1.0"
31+
"supertest": "3.3.0"
3232
},
3333
"files": [
3434
"LICENSE",

0 commit comments

Comments
 (0)