forked from showdownjs/showdown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (35 loc) · 968 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "6"
- "7"
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
#travis build speed up
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