Skip to content

Commit 7e5dce9

Browse files
authored
Build website in PRs and fail if broken (#323)
1 parent 418b7ac commit 7e5dce9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ cache:
1010
directories:
1111
- ".eslintcache"
1212
- "node_modules"
13-
script: yarn test:ci
13+
script:
14+
- yarn test:ci
15+
# Build the website in PRs so we make sure that PRs do not break the website
16+
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_NODE_VERSION" = "10" ]; then yarn build:website; fi
1417

15-
after_success: yarn build:website
18+
before_deploy: yarn build:website
1619
deploy:
1720
provider: pages
1821
skip_cleanup: true

0 commit comments

Comments
 (0)