Skip to content

Commit 86ea98a

Browse files
committed
use Dockerfile in Travis CI
1 parent 5e8ec8d commit 86ea98a

File tree

2 files changed

+28
-17
lines changed

2 files changed

+28
-17
lines changed

.travis.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
1-
# Run Travis CI for R using https://eddelbuettel.github.io/r-travis/
2-
3-
language: c
1+
# Run Travis CI for R via Docker
2+
#
3+
# Made by Dirk Eddelbuettel in August 2018 and released under GPL (>=2)
44

5+
os: linux
6+
dist: trusty
57
sudo: required
8+
services: docker
69

7-
dist: trusty
10+
env:
11+
global:
12+
- DOCKER_OPTS="--rm -ti -v $(pwd):/mnt -w /mnt"
13+
DOCKER_CNTR="eddelbuettel/rcpp-testing"
14+
R_BLD_CHK_OPTS="--no-build-vignettes --no-manual"
815

916
env:
1017
global:
1118
- RunAllRcppTests="yes"
1219

1320
before_install:
14-
- curl -OLs https://eddelbuettel.github.io/r-travis/run.sh && chmod 0755 run.sh
15-
# add our launchpad repo which has (inter alia) the r-cran-rbenchmark package
16-
- sudo add-apt-repository -y ppa:edd/misc
17-
- ./run.sh bootstrap
21+
- docker pull ${DOCKER_CNTR}
22+
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} r -p -e 'sessionInfo()'
1823

1924
install:
20-
- ./run.sh install_aptget r-cran-runit r-cran-inline r-cran-rbenchmark r-cran-rmarkdown r-cran-knitr r-cran-pinp r-cran-pkgkitten
25+
# Rcpp test runner can be forced to run more tests via this a variable
26+
- echo 'RunAllRcppTests="yes"' > ~/.Renviron
27+
#
28+
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD build ${R_BLD_CHK_OPTS} .
2129

22-
script:
23-
- ./run.sh run_tests
30+
script:
31+
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD check ${R_BLD_CHK_OPTS} Rcpp_*.tar.gz
2432

2533
after_success:
26-
- ./run.sh coverage
27-
28-
after_failure:
29-
- ./run.sh dump_logs
34+
- r -l covr -e 'codecov()'
3035

3136
notifications:
3237
email:
3338
on_success: change
3439
on_failure: change
3540
slack:
3641
secure: kUzgzzpgBMc6a+qSjGovfU14U7x9GUXfghDgyF5qBaND/MjFpkmTBfW438Out2buiY+hFNnZc4zThifJM300cOXbcwVentmzuVQ5lLjBhTDvwQgdqytgWr/Ds9dErBeMXr178UD3MJXSOCLhO0wUke2xp2ZsDhsjquT+vFYnuk8=
37-
38-

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2018-08-29 Dirk Eddelbuettel <[email protected]>
2+
3+
* .travis.yml: Use Dockerfile
4+
5+
2018-08-28 Dirk Eddelbuettel <[email protected]>
6+
7+
* docker/Dockerfile: Add Dockerfile for use by Travis CI
8+
19
2018-08-27 Dirk Eddelbuettel <[email protected]>
210

311
* DESCRIPTION (Version, Date): Roll minor version

0 commit comments

Comments
 (0)