1 | language: node_js
|
2 | node_js:
|
3 | - "0.10"
|
4 | - "0.12"
|
5 | - "4"
|
6 | - "6"
|
7 | - "7"
|
8 |
|
9 | before_install:
|
10 | - 'if [ "$TRAVIS_NODE_VERSION" != "0.10" -a "$TRAVIS_NODE_VERSION" != "0.12" ]; then npm update npm -g; fi'
|
11 | - npm install -g grunt-cli
|
12 |
|
13 |
|
14 | sudo: false
|
15 | cache:
|
16 | directories:
|
17 | - node_modules
|
18 |
|
19 |
|
20 | script:
|
21 | - >
|
22 | if [ "$TRAVIS_NODE_VERSION" == "0.10" -o "$TRAVIS_NODE_VERSION" == "0.12" ]; then
|
23 | printf
|
24 | "\n\n----------------------------------------\n
|
25 | \e[35m----- Running tests in LEGACY mode -----\e[0m\n
|
26 | ----------------------------------------\n\n\n"
|
27 | && grunt test-old; else
|
28 | echo "Running normal tests"
|
29 | && grunt test;
|
30 | fi
|
31 |
|
32 | # hooks
|
33 | notifications:
|
34 | webhooks:
|
35 | urls:
|
36 | - https://webhooks.gitter.im/e/e369617839852624aa69
|
37 | on_success: change
|
38 | on_failure: always
|
39 | on_start: false
|