1 | language: node_js
|
2 | node_js: 5
|
3 | install: npm install
|
4 | script:
|
5 | - npm test
|
6 | before_cache: npm prune
|
7 | branches:
|
8 | only:
|
9 | - master
|
10 | # force container based infra
|
11 | # http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure
|
12 | sudo: false
|
13 | cache:
|
14 | directories:
|
15 | - node_modules
|