UNPKG

968 BYAMLView Raw
1language: node_js
2node_js:
3 - "0.10"
4 - "0.12"
5 - "4"
6 - "6"
7 - "7"
8
9before_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#travis build speed up
14sudo: false
15cache:
16 directories:
17 - node_modules
18
19# scripts
20script:
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
33notifications:
34 webhooks:
35 urls:
36 - https://webhooks.gitter.im/e/e369617839852624aa69
37 on_success: change # options: [always|never|change] default: always
38 on_failure: always # options: [always|never|change] default: always
39 on_start: false # default: false