File tree Expand file tree Collapse file tree 4 files changed +53
-19
lines changed Expand file tree Collapse file tree 4 files changed +53
-19
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,4 @@ inst/include/Rcpp.h.old
19
19
LICENSE
20
20
.*.tar.gz
21
21
\.editorconfig
22
+ docker
Original file line number Diff line number Diff line change 1
- # Run Travis CI for R using https://eddelbuettel.github.io/r-travis/
2
-
3
- language : c
4
-
5
- sudo : required
1
+ # Run Travis CI for R via Docker
2
+ #
3
+ # Made by Dirk Eddelbuettel in August 2018 and released under GPL (>=2)
6
4
5
+ os : linux
7
6
dist : trusty
7
+ sudo : required
8
+ services : docker
8
9
9
10
env :
10
11
global :
11
- - RunAllRcppTests="yes"
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"
12
15
13
16
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
17
+ - docker pull ${DOCKER_CNTR}
18
+ - docker run ${DOCKER_OPTS} ${DOCKER_CNTR} r -p -e 'sessionInfo()'
18
19
19
20
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
21
+ # Rcpp test runner can be forced to run more tests via this a variable
22
+ - echo 'RunAllRcppTests="yes"' > ~/.Renviron
23
+ #
24
+ - docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD build ${R_BLD_CHK_OPTS} .
21
25
22
- script :
23
- - ./ run.sh run_tests
26
+ script :
27
+ - docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD check ${R_BLD_CHK_OPTS} Rcpp_*.tar.gz
24
28
25
29
after_success :
26
- - ./run.sh coverage
27
-
28
- after_failure :
29
- - ./run.sh dump_logs
30
+ - docker run ${DOCKER_OPTS} ${DOCKER_CNTR} r -l covr -e 'codecov()'
30
31
31
32
notifications :
32
33
email :
33
34
on_success : change
34
35
on_failure : change
35
36
slack :
36
37
secure : kUzgzzpgBMc6a+qSjGovfU14U7x9GUXfghDgyF5qBaND/MjFpkmTBfW438Out2buiY+hFNnZc4zThifJM300cOXbcwVentmzuVQ5lLjBhTDvwQgdqytgWr/Ds9dErBeMXr178UD3MJXSOCLhO0wUke2xp2ZsDhsjquT+vFYnuk8=
37
-
38
-
Original file line number Diff line number Diff line change
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
+
1
9
2018-08-27 Dirk Eddelbuettel <
[email protected] >
2
10
3
11
* DESCRIPTION (Version, Date): Roll minor version
Original file line number Diff line number Diff line change
1
+ # # Emacs, make this -*- mode: sh; -*-
2
+
3
+ FROM r-base:latest
4
+
5
+ LABEL org.label-schema.license=" GPL-2.0" \
6
+ org.label-schema.vcs-url=" https://github.com/RcppCore/Rcpp" \
7
+ maintainer=
" Dirk Eddelbuettel <[email protected] >"
8
+
9
+ RUN apt-get update \
10
+ && apt-get install -y --no-install-recommends \
11
+ r-cran-runit \
12
+ r-cran-inline \
13
+ r-cran-rmarkdown \
14
+ r-cran-knitr \
15
+ r-cran-pkgkitten \
16
+ r-cran-curl \
17
+ r-cran-openssl \
18
+ r-cran-httr \
19
+ r-cran-lazyeval \
20
+ r-cran-withr \
21
+ git \
22
+ && install.r rbenchmark pinp covr \
23
+ && mkdir ~ /.R \
24
+ && echo _R_CHECK_FORCE_SUGGESTS_=FALSE > ~ /.R/check.Renviron
25
+
26
+ CMD [" bash" ]
You can’t perform that action at this time.
0 commit comments