-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
61 lines (48 loc) · 1.33 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
54
55
56
57
58
59
60
61
# .travis.yml for R projects.
# See https://docs.travis-ci.com/user/languages/r/
language: r
# Enable if a more recent version of Ubuntu is helpful.
# This gives us g++-4.8, which is needed for C++11 (e.g. ranger package)
dist: trusty
# Disable sudo so that we can use container infrastructure and package caching.
sudo: false
# Enable sudo so that we can use apt-get to upgrade and install linux packages.
# We also need sudo for r_binary_packages listed below.
# sudo: required
# This only works if sudo = false.
cache: packages
r:
# Test current version of R, dev version, and previous major verison.
- release
#- devel
#- oldrel
os:
- linux
#- osx
compiler:
- gcc
#- clang
# Install nlopt package to help nloptr install.
addons:
apt:
packages:
- libnlopt-dev
env:
global:
- CRAN="http://cran.rstudio.com"
- R_BUILD_ARGS="--no-build-vignettes --no-manual"
- R_CHECK_TIME="TRUE"
- R_CHECK_TESTS="TRUE"
# This does not appear to do anything.
- MAKEFLAGS="-j 2"
# No error if suggested packages are not available.
#- _R_CHECK_FORCE_SUGGESTS_=0
warnings_are_errors: true
r_check_args: "--no-build-vignettes --no-manual --as-cran --timings"
r_github_packages:
- jimhester/covr
#- jimhester/lintr
after_success:
- Rscript -e 'covr::codecov()'
after_failure:
- ./travis-tool.sh dump_logs