Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify _travis.yml #263

Merged
merged 2 commits into from
Apr 24, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 18 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@

language: R
sudo: false
cache: packages
cache:
packages: true
warnings_are_errors: false

r:
- oldrel
- release
- devel

notifications:
email:
on_success: change
on_failure: change

jobs:
include:
- stage: "R CMD check"
r: oldrel
- r: release
- r: devel

- stage: deploy
name: covr
r: release
cache:
packages: false
r_binary_packages:
- covr
script:
Expand All @@ -28,13 +31,19 @@ jobs:
- stage: deploy
name: pkgdown
r: release
if: branch IN (master)
cache:
packages: false
if: |
branch IN (master, travis) AND \
type = push AND \
repo = rstudio/gt
r_binary_packages:
- pkgdown
- remotes
script:
- Rscript -e "devtools::install()"
- Rscript -e "remotes::install_local()"
- Rscript -e "pkgdown::build_site()"
- Rscript -e "remove.packages(devtools::as.package('.')$package)"
- Rscript -e "remove.packages('gt')"
deploy:
provider: pages
local-dir: docs
Expand Down