|
1 | 1 | # Sample .travis.yml for R projects. |
2 | 2 | # |
3 | | -# See https://github.com/craigcitro/r-travis |
4 | | -# |
5 | | -# Running with default settings which for now means 'no manual, no vignettes' |
6 | | -# and checking '--as-cran'. |
| 3 | +# See README.md for instructions, or for more configuration options, |
| 4 | +# see the wiki: |
| 5 | +# https://github.com/craigcitro/r-travis/wiki |
7 | 6 |
|
8 | 7 | language: c |
9 | | -script: ./travis-tool.sh run_tests |
| 8 | + |
| 9 | +env: |
| 10 | + global: |
| 11 | + - R_BUILD_ARGS="--no-build-vignettes --no-manual" |
| 12 | + - R_CHECK_ARGS="--no-build-vignettes --no-manual --as-cran" |
| 13 | + - RunAllRcppTests="yes" |
| 14 | + - CC="gcc-4.7" |
| 15 | + - CXX="g++-4.7" |
| 16 | + |
10 | 17 | before_install: |
11 | 18 | - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh |
12 | 19 | - chmod 755 ./travis-tool.sh |
13 | 20 | - ./travis-tool.sh bootstrap |
| 21 | + - ./travis-tool.sh install_aptget gcc-4.7 g++-4.7 |
| 22 | + |
14 | 23 | install: |
15 | | - - ./travis-tool.sh r_install RUnit inline rbenchmark highlight |
| 24 | + - ./travis-tool.sh install_r RUnit inline rbenchmark highlight |
| 25 | + |
| 26 | +script: |
| 27 | + - ./travis-tool.sh run_tests |
| 28 | + |
16 | 29 | after_script: |
17 | 30 | - ./travis-tool.sh dump_logs |
| 31 | + |
18 | 32 | notifications: |
19 | 33 | email: |
20 | 34 | on_success: change |
21 | 35 | on_failure: change |
22 | 36 |
|
23 | | -# Options used for building or testing your R package can be |
24 | | -# controlled by uncommenting one or both of the following; the values |
25 | | -# here are the defaults: |
26 | | -env: |
27 | | - global: |
28 | | - - R_BUILD_ARGS="--no-build-vignettes --no-manual" |
29 | | - - R_CHECK_ARGS="--no-build-vignettes --no-manual --as-cran" |
30 | | - - RunAllRcppTests="yes" |
31 | 37 |
|
32 | | -# See the travis docs for more information: |
33 | | -# http://about.travis-ci.org/docs/user/build-configuration/#The-Build-Matrix |
34 | | - |
35 | | - |
36 | | -# Also works but is slower as it needs devtools: |
37 | | -# - ./travis-tool.sh install_deps |
38 | | - |
39 | | -# Currently unused (and GSL used for illustration) |
40 | | -# - ./travis-tool.sh aptget_install libgsl0-dev |
41 | 38 |
|
0 commit comments