Skip to content

Commit

Permalink
Enable macos checks on Travis CI (#10).
Browse files Browse the repository at this point in the history
* Use matrix expansion instead of explicit matrix of jobs.
  • Loading branch information
riccardoporreca committed Mar 3, 2020
1 parent e4ac407 commit e529adf
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .travis.yml
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

0 comments on commit e529adf

Please sign in to comment.