Skip to content

Commit 809a0d4

Browse files
committed
Only run staticdocs if deploying
1 parent 94d1b51 commit 809a0d4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ install:
1313

1414
script: ./travis-tool.sh run_tests
1515

16-
after_success:
17-
- ./travis-tool.sh install_github hadley/staticdocs
18-
- R -e "staticdocs::build_site()"
19-
2016
on_failure:
2117
- ./travis-tool.sh dump_logs
2218

@@ -25,6 +21,11 @@ notifications:
2521
on_success: change
2622
on_failure: change
2723

24+
25+
before_deploy:
26+
- ./travis-tool.sh install_github hadley/staticdocs
27+
- R -e "staticdocs::build_site()"
28+
2829
deploy:
2930
edge: true
3031

0 commit comments

Comments
 (0)