forked from Rdatatable/data.table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (43 loc) · 1.66 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
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. Off by default to speed up dev cycle. AppVeyor covers R-devel and completes in 10m concurrently.
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 # 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:
- 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 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
# drat using @jangorecki token
- secure: "CxDW++rsQApQWos+h1z/F76odysyD6AtXJrDwlCHlgqXeKJNRATR4wZDDR18SK+85jUqjoqOvpyrq+5kKuyg6AnA/zduaX2uYE5mcntEUiyzlG/jJUKbcJqt22nyAvFXP3VS60T2u4H6IIhVmr7dArdxLkv8W+pJvf2Tg6kx8Ws="