Skip to content

Commit 9bf01e7

Browse files
authored
Merge pull request #1057 from RcppCore/feature/parallel_coverage
Run coverage in parallel with tests
2 parents 9ae6f13 + 0e4410c commit 9bf01e7

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ services: docker
1010
jobs:
1111
include:
1212
- name: release
13-
env: DOCKER_CNTR="rcpp/ci" R="R" COVR="yes"
13+
env: DOCKER_CNTR="rcpp/ci" R="R" COVR="no"
1414
- name: r-3.4
15-
env: DOCKER_CNTR="rcpp/ci-3.4" R="R"
15+
env: DOCKER_CNTR="rcpp/ci-3.4" R="R" COVR="no"
1616
- name: r-3.5
17-
env: DOCKER_CNTR="rcpp/ci-3.5" R="R"
17+
env: DOCKER_CNTR="rcpp/ci-3.5" R="R" COVR="no"
1818
- name: dev
19-
env: DOCKER_CNTR="rcpp/ci-dev" R="RD"
19+
env: DOCKER_CNTR="rcpp/ci-dev" R="RD" COVR="no"
20+
- name: coverage
21+
env: DOCKER_CNTR="rcpp/ci" R="R" COVR="yes"
2022

2123
env:
2224
global:
@@ -33,10 +35,8 @@ install:
3335
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} ${R} CMD build ${R_BLD_OPTS} .
3436

3537
script:
36-
- docker run ${DOCKER_OPTS} ${DOCKER_CNTR} ${R} CMD check ${R_CHK_OPTS} Rcpp_*.tar.gz
37-
38-
after_success:
39-
- if [[ "$COVR" == "yes" ]]; then docker run ${DOCKER_OPTS} -e CODECOV_TOKEN ${DOCKER_CNTR} r -l covr -e 'codecov()'; fi
38+
- if [[ "${COVR}" == "no" ]]; then docker run ${DOCKER_OPTS} ${DOCKER_CNTR} ${R} CMD check ${R_CHK_OPTS} Rcpp_*.tar.gz; fi
39+
- if [[ "${COVR}" == "yes" ]]; then docker run ${DOCKER_OPTS} -e CODECOV_TOKEN ${DOCKER_CNTR} r -l covr -e 'codecov()'; fi
4040

4141
notifications:
4242
email:

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-03-23 Dirk Eddelbuettel <[email protected]>
2+
3+
* .travis.yml (script): Run coverage as parallel step
4+
15
2020-03-22 Dirk Eddelbuettel <[email protected]>
26

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

0 commit comments

Comments
 (0)