|
@@ -1,11 +1,12 @@
|
|
language: node_js
|
|
language: node_js
|
|
node_js:
|
|
node_js:
|
|
|
|
+ - "0.10"
|
|
- "0.12"
|
|
- "0.12"
|
|
- "4.0"
|
|
- "4.0"
|
|
- "6.0"
|
|
- "6.0"
|
|
|
|
|
|
before_install:
|
|
before_install:
|
|
- - 'if [ "$TRAVIS_NODE_VERSION" !== "0.12" ]; then npm update npm -g; fi'
|
|
|
|
|
|
+ - 'if [ "$TRAVIS_NODE_VERSION" != "0.10" -a "$TRAVIS_NODE_VERSION" != "0.12" ]; then npm update npm -g; fi'
|
|
- npm install -g grunt-cli
|
|
- npm install -g grunt-cli
|
|
|
|
|
|
#travis build speed up
|
|
#travis build speed up
|
|
@@ -16,7 +17,16 @@ cache:
|
|
|
|
|
|
# scripts
|
|
# scripts
|
|
script:
|
|
script:
|
|
- - 'if [ "$TRAVIS_NODE_VERSION" == "0.12" ]; then echo "Bypassing EsLint" && grunt test-old; else echo "Running normal tests" && grunt test; fi'
|
|
|
|
|
|
+ - >
|
|
|
|
+ if [ "$TRAVIS_NODE_VERSION" == "0.10" -o "$TRAVIS_NODE_VERSION" == "0.12" ]; then
|
|
|
|
+ printf
|
|
|
|
+ "\n\n----------------------------------------\n
|
|
|
|
+ \e[35m----- Running tests in LEGACY mode -----\e[0m\n
|
|
|
|
+ ----------------------------------------\n\n\n"
|
|
|
|
+ && grunt test-old; else
|
|
|
|
+ echo "Running normal tests"
|
|
|
|
+ && grunt test;
|
|
|
|
+ fi
|
|
|
|
|
|
# hooks
|
|
# hooks
|
|
notifications:
|
|
notifications:
|