Skip to content

Commit

Permalink
travis do only 2 builds, closes #3357
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Feb 5, 2019
1 parent e043dd2 commit bb30c56
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,36 @@
#
# Travis configuration guide for R language:
# https://docs.travis-ci.com/user/languages/r/
# https://github.com/craigcitro/r-travis/wiki/Porting-to-native-R-support-in-Travis
#
language: r
dist: trusty
sudo: required
cache: packages
warnings_are_errors: true
r_check_args: ""
# empty r_check_args to turn off --as-cran (on by default) as that can be slow

branches:
only:
- "master"

r:
- oldrel
- release
- devel

os:
- linux
- osx

matrix:
exclude:
- r: devel # exclude osx r-devel build as it is currently unstable
os: osx

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install llvm &&
export PATH="/usr/local/opt/llvm/bin:$PATH" &&
export LDFLAGS="-L/usr/local/opt/llvm/lib" &&
export CFLAGS="-I/usr/local/opt/llvm/include"; fi

r_packages:
- covr
- drat
- covr # used for code coverage reports in github pull requests
- drat # used in deploy.sh to publish tar.gz to github.io/Rdatatable/data.table
- devtools # explicitly named temp fix for #2801

before_script:
- echo "Revision:" $TRAVIS_COMMIT >> ./DESCRIPTION

after_success:
- travis_wait Rscript -e 'library(covr);codecov()'
- travis_wait Rscript -e 'library(covr); codecov()'
- test $TRAVIS_REPO_SLUG == "Rdatatable/data.table" &&
test $TRAVIS_PULL_REQUEST == "false" &&
test $TRAVIS_BRANCH == "master" &&
Expand All @@ -59,5 +45,6 @@ env:
global:
- PKG_CFLAGS="-O3 -Wall -pedantic"
- _R_CHECK_NO_STOP_ON_TEST_ERROR_=true
- _R_CHECK_CRAN_INCOMING_REMOTE_=false
# drat using @jangorecki token
- secure: "CxDW++rsQApQWos+h1z/F76odysyD6AtXJrDwlCHlgqXeKJNRATR4wZDDR18SK+85jUqjoqOvpyrq+5kKuyg6AnA/zduaX2uYE5mcntEUiyzlG/jJUKbcJqt22nyAvFXP3VS60T2u4H6IIhVmr7dArdxLkv8W+pJvf2Tg6kx8Ws="

0 comments on commit bb30c56

Please sign in to comment.