-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable macos checks on Travis CI (#10).
* Use matrix expansion instead of explicit matrix of jobs.
- Loading branch information
1 parent
e4ac407
commit e529adf
Showing
1 changed file
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,34 @@ | ||
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r | ||
|
||
language: R | ||
language: r | ||
cache: packages | ||
warnings_are_errors: true | ||
|
||
r: | ||
- devel | ||
- release | ||
- oldrel | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
matrix: | ||
include: | ||
# Vanilla macOS machine: remove preinstalled homebrew installation | ||
disable_homebrew: true | ||
|
||
jobs: | ||
exclude: | ||
# macOS binary packages not available for r-devel | ||
- r: devel | ||
- r: release | ||
after_success: | ||
- Rscript -e 'covr::codecov()' | ||
- r: oldrel | ||
os: osx | ||
|
||
# Code coverage | ||
after_success: | ||
- >- | ||
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_R_VERSION_STRING" = "release" ]; then | ||
echo Code coverage... | ||
Rscript -e 'covr::codecov()' | ||
else | ||
echo Skip code coverage | ||
fi | ||
warnings_are_errors: true |