test: make ci run faster (#1242)
This commit is contained in:
parent
eea159d6fd
commit
c67f543f75
2 changed files with 10 additions and 13 deletions
19
.travis.yml
19
.travis.yml
|
@ -1,6 +1,8 @@
|
||||||
|
sudo: false
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- stable
|
- 10
|
||||||
|
- 8
|
||||||
- 7
|
- 7
|
||||||
- 6
|
- 6
|
||||||
- 5
|
- 5
|
||||||
|
@ -9,17 +11,12 @@ node_js:
|
||||||
- 2
|
- 2
|
||||||
- 1
|
- 1
|
||||||
- 0.12
|
- 0.12
|
||||||
matrix:
|
cache:
|
||||||
include:
|
directories:
|
||||||
- node_js: "8.0"
|
- wrk/bin
|
||||||
env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
|
|
||||||
allow_failures:
|
|
||||||
# Allow the nightly installs to fail
|
|
||||||
- env: "NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly"
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get install build-essential libssl-dev git
|
- "[ ! -f wrk/bin/wrk ] && rm -rf wrk && git clone https://github.com/wg/wrk.git && make -C wrk && mkdir wrk/bin && mv wrk/wrk wrk/bin || true"
|
||||||
- git clone https://github.com/wg/wrk.git
|
- export PATH=$PATH:$PWD/wrk/bin/
|
||||||
- cd wrk && make && sudo cp wrk /usr/local/bin && cd ..
|
|
||||||
script:
|
script:
|
||||||
- make test-travis
|
- make test-travis
|
||||||
- make bench
|
- make bench
|
||||||
|
|
|
@ -28,7 +28,7 @@ describe('res.status=', function(){
|
||||||
it('should throw', function(){
|
it('should throw', function(){
|
||||||
assert.throws(function() {
|
assert.throws(function() {
|
||||||
response().status = 999;
|
response().status = 999;
|
||||||
}, 'invalid status code: 999');
|
}, /invalid status code: 999/);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ describe('res.status=', function(){
|
||||||
it('should throw', function(){
|
it('should throw', function(){
|
||||||
assert.throws(function() {
|
assert.throws(function() {
|
||||||
response().status = 'forbidden';
|
response().status = 'forbidden';
|
||||||
}, 'status code must be a number');
|
}, /status code must be a number/);
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue