showdown/.travis.yml

40 lines
968 B
YAML
Raw Permalink Normal View History

2012-11-02 02:08:26 +08:00
language: node_js
2012-11-02 06:23:06 +08:00
node_js:
- "0.10"
- "0.12"
2017-03-05 13:23:20 +08:00
- "4"
- "6"
- "7"
2015-01-05 09:00:01 +08:00
2015-01-05 09:06:08 +08:00
before_install:
- 'if [ "$TRAVIS_NODE_VERSION" != "0.10" -a "$TRAVIS_NODE_VERSION" != "0.12" ]; then npm update npm -g; fi'
- npm install -g grunt-cli
2015-01-17 07:09:12 +08:00
#travis build speed up
2015-01-17 07:09:12 +08:00
sudo: false
cache:
directories:
- node_modules
# scripts
script:
- >
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:
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