2012-11-01 14:08:26 -04:00
|
|
|
language: node_js
|
2012-11-01 18:23:06 -04:00
|
|
|
node_js:
|
2017-03-05 03:50:04 +00:00
|
|
|
- "0.10"
|
2017-03-05 02:49:13 +00:00
|
|
|
- "0.12"
|
2017-03-05 05:23:20 +00:00
|
|
|
- "4"
|
|
|
|
- "6"
|
|
|
|
- "7"
|
2015-01-05 01:00:01 +00:00
|
|
|
|
2015-01-05 01:06:08 +00:00
|
|
|
before_install:
|
2017-03-05 03:50:04 +00:00
|
|
|
- 'if [ "$TRAVIS_NODE_VERSION" != "0.10" -a "$TRAVIS_NODE_VERSION" != "0.12" ]; then npm update npm -g; fi'
|
2015-05-16 00:32:00 +01:00
|
|
|
- npm install -g grunt-cli
|
2015-01-16 23:09:12 +00:00
|
|
|
|
2015-05-15 22:11:09 +01:00
|
|
|
#travis build speed up
|
2015-01-16 23:09:12 +00:00
|
|
|
sudo: false
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2015-05-28 21:43:34 +01:00
|
|
|
|
2017-01-31 05:46:25 +00:00
|
|
|
# scripts
|
|
|
|
script:
|
2017-03-05 03:50:04 +00:00
|
|
|
- >
|
|
|
|
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
|
2017-01-31 05:46:25 +00:00
|
|
|
|
2015-05-28 21:43:34 +01:00
|
|
|
# hooks
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/e369617839852624aa69
|
|
|
|
on_success: change # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: false # default: false
|