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