Эх сурвалжийг харах

chore(travis): add support for node 0.10 in travis (#351)

* make logs more beautiful
* make command more readable in travis.yml
Estevão Soares dos Santos 8 жил өмнө
parent
commit
cee6be6808
1 өөрчлөгдсөн 12 нэмэгдсэн , 2 устгасан
  1. 12 2
      .travis.yml

+ 12 - 2
.travis.yml

@@ -1,11 +1,12 @@
 language: node_js
 node_js:
+  - "0.10"
   - "0.12"
   - "4.0"
   - "6.0"
 
 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
 
 #travis build  speed up
@@ -16,7 +17,16 @@ cache:
 
 # scripts
 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
 notifications: