koa-lite/.travis.yml
2017-03-14 01:55:54 -07:00

27 lines
693 B
YAML

sudo: false
language: node_js
node_js:
- stable
- 7.6
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
- node_modules
before_script:
- npm prune
- "[ ! -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 lint
- make test-travis
- make bench
after_script:
- npm install codecov
- ./node_modules/.bin/codecov