File tree Expand file tree Collapse file tree 2 files changed +28
-17
lines changed Expand file tree Collapse file tree 2 files changed +28
-17
lines changed 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
1
+ # Run Travis CI for R via Docker
2
+ #
3
+ # Made by Dirk Eddelbuettel in August 2018 and released under GPL (>=2)
4
4
5
+ os : linux
6
+ dist : trusty
5
7
sudo : required
8
+ services : docker
6
9
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"
8
15
9
16
env :
10
17
global :
11
18
- RunAllRcppTests="yes"
12
19
13
20
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()'
18
23
19
24
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} .
21
29
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
24
32
25
33
after_success :
26
- - ./run.sh coverage
27
-
28
- after_failure :
29
- - ./run.sh dump_logs
34
+ - r -l covr -e 'codecov()'
30
35
31
36
notifications :
32
37
email :
33
38
on_success : change
34
39
on_failure : change
35
40
slack :
36
41
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
You can’t perform that action at this time.
0 commit comments