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

travis do only 2 builds #3360

Merged
merged 1 commit into from
Feb 5, 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
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_R_CHECK_CRAN_INCOMING_REMOTE_=false defined below should resolve problem of slow --as-cran


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 &&
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally this install llvm we would like to speed up

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="