Skip to content

Commit 4d2a9b6

Browse files
committed
update configs
1 parent cded78a commit 4d2a9b6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
.vscode
2+
13
node_modules/
4+
docs/_build

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ language: node_js
22
node_js: "8"
33
install: "npm install"
44
script:
5-
- 'if [ "$TRAVIS_PULL_REQUEST" = "true" ]; then npm run test; fi'
6-
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run docs; fi'
5+
- npm run test'
6+
- 'if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then npm run docs; fi'
77
dist: trusty
88
sudo: false
99
cache:
1010
directories:
1111
- "node_modules"
1212
after_success:
13-
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sh .travis-push.sh; fi'
13+
- 'if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then sh .travis-push.sh; fi'

0 commit comments

Comments
 (0)