2012-11-02 02:08:26 +08:00
|
|
|
language: node_js
|
2012-11-02 06:23:06 +08:00
|
|
|
node_js:
|
2015-07-13 12:39:05 +08:00
|
|
|
- "0.12"
|
2016-09-29 07:20:30 +08:00
|
|
|
- "4.0"
|
|
|
|
- "6.0"
|
2015-01-05 09:00:01 +08:00
|
|
|
|
2015-01-05 09:06:08 +08:00
|
|
|
before_install:
|
2015-05-16 07:32:00 +08:00
|
|
|
- npm install -g grunt-cli
|
2015-01-17 07:09:12 +08:00
|
|
|
|
2015-05-16 05:11:09 +08:00
|
|
|
#travis build speed up
|
2015-01-17 07:09:12 +08:00
|
|
|
sudo: false
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
2015-05-29 04:43:34 +08:00
|
|
|
|
2017-01-31 13:46:25 +08:00
|
|
|
# scripts
|
|
|
|
script:
|
|
|
|
- 'if [ "$TRAVIS_NODE_VERSION" == "0.12" ]; then echo "Bypassing EsLint" && grunt test-old; else echo "Running normal tests" && grunt test; fi'
|
|
|
|
|
2015-05-29 04:43:34 +08: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
|