forked from Rdatatable/data.table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 1.63 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
language: r
dist: trusty
sudo: required
cache: packages # to rebuild cache see tweet thread ending here https://twitter.com/jimhester_/status/1115718589804421121
warnings_are_errors: true
branches:
only:
- "master"
r:
- release
os:
- linux
# - osx # Takes 13m (+9m linux = 22m total); #3357; #3326; #3331. When off it's to speed up dev cycle; CRAN_Release.cmd has a reminder to turn back on.
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:
- drat # used in .ci/deploy.sh to publish tar.gz to github.io/Rdatatable/data.table
- covr
before_script:
- echo "Revision:" $TRAVIS_COMMIT >> ./DESCRIPTION
after_success:
- test $TRAVIS_OS_NAME == "linux" &&
travis_wait Rscript -e 'library(covr); codecov()'
- test $TRAVIS_OS_NAME == "linux" &&
test $TRAVIS_REPO_SLUG == "Rdatatable/data.table" &&
test $TRAVIS_PULL_REQUEST == "false" &&
test $TRAVIS_BRANCH == "master" &&
bash .ci/deploy.sh
notifications:
email:
on_success: change
on_failure: change
env:
global:
- PKG_CFLAGS="-O3 -Wall -pedantic"
- _R_CHECK_NO_STOP_ON_TEST_ERROR_=true
- _R_CHECK_CRAN_INCOMING_REMOTE_=false
# Block truncation of any error messages in R CMD check
- _R_CHECK_TESTS_NLINES_=0
# drat using @jangorecki token
- secure: "CxDW++rsQApQWos+h1z/F76odysyD6AtXJrDwlCHlgqXeKJNRATR4wZDDR18SK+85jUqjoqOvpyrq+5kKuyg6AnA/zduaX2uYE5mcntEUiyzlG/jJUKbcJqt22nyAvFXP3VS60T2u4H6IIhVmr7dArdxLkv8W+pJvf2Tg6kx8Ws="