1 | os:
|
2 | - linux
|
3 | language: node_js
|
4 |
|
5 | node_js:
|
6 | - "4.1"
|
7 | - "4.0"
|
8 | - "0.12"
|
9 | - "0.11"
|
10 | - "0.10"
|
11 | - "iojs"
|
12 |
|
13 | notifications:
|
14 | email:
|
15 | - barcher4620@gmail.com
|
16 |
|
17 | # taken directly from travis yml - angular.js
|
18 | # node 4 likes the G++ v4.8 compiler
|
19 | # see https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
|
20 | addons:
|
21 | apt:
|
22 | sources:
|
23 | - ubuntu-toolchain-r-test
|
24 | packages:
|
25 | - g++-4.8
|
26 |
|
27 | install:
|
28 | - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
|
29 | - ls -la
|
30 | - if [[ $TRAVIS_NODE_VERSION == "0.8" ]]; then npm install npm@2 && node_modules/.bin/npm install npm; else npm install npm; fi
|
31 | - mv node_modules npm
|
32 | - npm/.bin/npm --version
|
33 | - npm/.bin/npm update
|
34 | - npm install mocha
|
35 | - npm install chai
|
36 | - npm install underscore
|
37 | - npm/.bin/npm install
|
38 |
|
39 | script:
|
40 | # http://mochajs.org/#reporters currently using 'spec'
|
41 | - npm test
|