-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
32 lines (31 loc) · 948 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
language: node_js
node_js:
- "node"
cache:
directories:
- node_modules
before_install:
- |
echo "Checking if a CI run is needed post commit: ${TRAVIS_COMMIT_RANGE}"
if ! git diff --name-only ${TRAVIS_COMMIT_RANGE} | grep -qvE '(\.md$)|(\.png$)|(\.pdf$)|(\.html$)|^(LICENSE)|^(docs)/'
then
echo "Only doc files were updated, not running the CI."
exit
fi
notifications:
email:
recipients:
- gimmysu@gmail.com
on_success: always
on_failure: always
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/78f53988cc8db6f8d635
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
script:
- echo 'Build starts!!'
- echo 'Testing!'
- npm -v