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
|
||||
node_js:
|
||||
- stable
|
||||
- 10
|
||||
- 8
|
||||
- 7
|
||||
- 6
|
||||
- 5
|
||||
|
@ -9,17 +11,12 @@ node_js:
|
|||
- 2
|
||||
- 1
|
||||
- 0.12
|
||||
matrix:
|
||||
include:
|
||||
- node_js: "8.0"
|
||||
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"
|
||||
cache:
|
||||
directories:
|
||||
- wrk/bin
|
||||
before_script:
|
||||
- sudo apt-get install build-essential libssl-dev git
|
||||
- git clone https://github.com/wg/wrk.git
|
||||
- cd wrk && make && sudo cp wrk /usr/local/bin && cd ..
|
||||
- "[ ! -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"
|
||||
- export PATH=$PATH:$PWD/wrk/bin/
|
||||
script:
|
||||
- make test-travis
|
||||
- make bench
|
||||
|
|
|
@ -28,7 +28,7 @@ describe('res.status=', function(){
|
|||
it('should throw', function(){
|
||||
assert.throws(function() {
|
||||
response().status = 999;
|
||||
}, 'invalid status code: 999');
|
||||
}, /invalid status code: 999/);
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -63,7 +63,7 @@ describe('res.status=', function(){
|
|||
it('should throw', function(){
|
||||
assert.throws(function() {
|
||||
response().status = 'forbidden';
|
||||
}, 'status code must be a number');
|
||||
}, /status code must be a number/);
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue