]>
Commit | Line | Data |
---|---|---|
1 | language: node_js | |
2 | ||
3 | sudo: false | |
4 | ||
5 | notifications: | |
6 | email: | |
7 | - yiminghe@gmail.com | |
8 | ||
9 | node_js: | |
10 | - 6 | |
11 | ||
12 | before_install: | |
13 | - | | |
14 | if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)|(^(docs|examples))/' | |
15 | then | |
16 | echo "Only docs were updated, stopping build process." | |
17 | exit | |
18 | fi | |
19 | npm install npm@3.x -g | |
20 | phantomjs --version | |
21 | script: | |
22 | - | | |
23 | if [ "$TEST_TYPE" = test ]; then | |
24 | npm test | |
25 | else | |
26 | npm run $TEST_TYPE | |
27 | fi | |
28 | env: | |
29 | matrix: | |
30 | - TEST_TYPE=lint | |
31 | - TEST_TYPE=test | |
32 | - TEST_TYPE=coverage |