Skip to content

Commit

Permalink
Expanded script, re. #57
Browse files Browse the repository at this point in the history
  • Loading branch information
AEBilgrau committed Aug 11, 2019
1 parent 29b0194 commit 9ec17c4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@ after_failure:

deploy:
provider: script
script: Rscript -e 'x <- file.remove(list.files("docs/reference/", pattern = "Rplots[0-9]*\\.pdf", full.names = TRUE)); stopifnot(all(x)); Sys.getenv(); pkgdown::deploy_site_github(verbose = TRUE)'
script: Rscript -e '
message("Clean RplotsXXX.pdf")
clean_rplots <- function() {
file.remove(list.files("docs/reference/", pattern = "Rplots[0-9]*\\.pdf", full.names = TRUE))
};
stopifnot(clean_rplots());
Sys.getenv();
message("Deploy site")
pkgdown::deploy_site_github(verbose = TRUE);
message("Clean RplotsXXX.pdf again")
stopifnot(clean_rplots());
'
skip_cleanup: true
on:
condition: "$TRAVIS_R_VERSION_STRING = release"
Expand Down

0 comments on commit 9ec17c4

Please sign in to comment.