]>
Commit | Line | Data |
---|---|---|
3c176a6f | 1 | language: node_js |
2 | ||
4984ed85 | 3 | sudo: false |
4 | ||
3c176a6f | 5 | notifications: |
6 | email: | |
7 | - yiminghe@gmail.com | |
8 | ||
9 | node_js: | |
8c2e96b8 | 10 | - 6 |
3c176a6f | 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 | |
4984ed85 | 19 | npm install npm@3.x -g |
3c176a6f | 20 | phantomjs --version |
3c176a6f | 21 | script: |
22 | - | | |
23 | if [ "$TEST_TYPE" = test ]; then | |
24 | npm test | |
25 | else | |
26 | npm run $TEST_TYPE | |
27 | fi | |
3c176a6f | 28 | env: |
29 | matrix: | |
30 | - TEST_TYPE=lint | |
4984ed85 | 31 | - TEST_TYPE=test |
32 | - TEST_TYPE=coverage |