Skip to content

Commit 9ae6f13

Browse files
authored
Merge pull request #1056 from RcppCore/feature/expand_ci
Expand CI to four run matrix
2 parents 1de4cf3 + a804b8f commit 9ae6f13

File tree

6 files changed

+78
-4
lines changed

6 files changed

+78
-4
lines changed

.travis.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,36 @@ dist: trusty
77
sudo: required
88
services: docker
99

10+
jobs:
11+
include:
12+
- name: release
13+
env: DOCKER_CNTR="rcpp/ci" R="R" COVR="yes"
14+
- name: r-3.4
15+
env: DOCKER_CNTR="rcpp/ci-3.4" R="R"
16+
- name: r-3.5
17+
env: DOCKER_CNTR="rcpp/ci-3.5" R="R"
18+
- name: dev
19+
env: DOCKER_CNTR="rcpp/ci-dev" R="RD"
20+
1021
env:
1122
global:
1223
- DOCKER_OPTS="--rm -ti -v $(pwd):/mnt -w /mnt"
13-
DOCKER_CNTR="rcpp/ci"
1424
R_BLD_OPTS="--no-build-vignettes --no-manual"
1525
R_CHK_OPTS="--no-vignettes --no-manual"
1626

1727
before_install:
1828
- docker pull ${DOCKER_CNTR}
1929
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} r -p -e 'sessionInfo()'
30+
- if [[ "$R" == "RD" ]]; then docker run ${DOCKER_OPTS} ${DOCKER_CNTR} RDscript -e 'sessionInfo()'; fi
2031

2132
install:
22-
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD build ${R_BLD_OPTS} .
33+
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} ${R} CMD build ${R_BLD_OPTS} .
2334

2435
script:
25-
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} R CMD check ${R_CHK_OPTS} Rcpp_*.tar.gz
36+
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} ${R} CMD check ${R_CHK_OPTS} Rcpp_*.tar.gz
2637

2738
after_success:
28-
- docker run ${DOCKER_OPTS} -e CODECOV_TOKEN ${DOCKER_CNTR} r -l covr -e 'codecov()'
39+
- if [[ "$COVR" == "yes" ]]; then docker run ${DOCKER_OPTS} -e CODECOV_TOKEN ${DOCKER_CNTR} r -l covr -e 'codecov()'; fi
2940

3041
notifications:
3142
email:

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
* DESCRIPTION (Version, Date): Roll minor version
44
* inst/include/Rcpp/config.h: Idem
55

6+
* docker/ci-3.4/Dockerfile: Added
7+
* docker/ci-3.5/Dockerfile: Idem
8+
* docker/ci-dev/Dockerfile: Idem
9+
10+
* .travis.yml (jobs): Expand to matrix
11+
612
2020-03-22 Mattias Ellert <[email protected]>
713

814
* inst/include/Rcpp/exceptions_impl.h: Add include guard,

docker/ci-3.4/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Emacs, make this -*- mode: sh; -*-
2+
3+
FROM r-base:3.4.4
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+
git \
12+
&& install.r inline pkgKitten rbenchmark tinytest
13+
14+
ENV _R_CHECK_FORCE_SUGGESTS_ FALSE
15+
ENV _R_CHECK_TESTS_NLINES_ 0
16+
ENV RunAllRcppTests yes
17+
18+
CMD ["bash"]

docker/ci-3.5/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Emacs, make this -*- mode: sh; -*-
2+
3+
FROM r-base:3.5.3
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 git \
11+
&& install.r inline pkgKitten rbenchmark tinytest
12+
13+
ENV _R_CHECK_FORCE_SUGGESTS_ FALSE
14+
ENV _R_CHECK_TESTS_NLINES_ 0
15+
ENV RunAllRcppTests yes
16+
17+
CMD ["bash"]

docker/ci-dev/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Emacs, make this -*- mode: sh; -*-
2+
3+
FROM rocker/drd
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 git \
11+
&& RDscript -e 'install.packages(c("inline", "pkgKitten", "rbenchmark", "tinytest"))'
12+
13+
ENV _R_CHECK_FORCE_SUGGESTS_ FALSE
14+
ENV _R_CHECK_TESTS_NLINES_ 0
15+
ENV RunAllRcppTests yes
16+
17+
CMD ["bash"]

inst/NEWS.Rd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
\item Missing \code{Rcpp_list{2,3,4,5}} definition were added to
1717
the Rcpp namespace (Dirk fixing \ghit{1053}).
1818
}
19+
\item Changes in Rcpp Deployment:
20+
\itemize{
21+
\item Travis CI unit tests now run a matrix over the versions of R
22+
also tested at CRAN (rel/dev/oldrel/oldoldrel) (Dirk in \ghpr{1056}).
23+
}
1924
}
2025
}
2126

0 commit comments

Comments
 (0)