Skip to content

Commit 0849853

Browse files
author
qinwf
committed
add travis
1 parent 133131a commit 0849853

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.travis.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Sample .travis.yml for R projects.
2+
#
3+
# See the r-travis repo and its wiki
4+
# https://github.com/craigcitro/r-travis/wiki
5+
# https://github.com/eddelbuettel/r-travis/
6+
7+
language: c
8+
9+
env:
10+
global:
11+
- PKG_CFLAGS="-I../inst/include -DLOGGER_LEVEL=LL_WARN"
12+
- R_BUILD_ARGS="--no-build-vignettes --no-manual"
13+
- R_CHECK_ARGS="--no-vignettes --no-manual"
14+
matrix:
15+
- _R_CHECK_CRAN_INCOMING_=FALSE
16+
- R_BUILD_ARGS=" " R_CHECK_ARGS="--as-cran" BOOTSTRAP_LATEX="1" _R_CHECK_CRAN_INCOMING_=TRUE BOOTSTRAP_PANDOC="1"
17+
18+
19+
before_install:
20+
- echo "options(repos = c(CRAN='http://cran.r-project.org'))" >> ~/.Rprofile
21+
- curl -OL http://raw.github.com/qinwf/r-travis/master/scripts/travis-tool.sh
22+
- chmod 755 ./travis-tool.sh
23+
- ./travis-tool.sh bootstrap
24+
25+
install:
26+
- ./travis-tool.sh install_deps
27+
28+
script:
29+
- ./travis-tool.sh run_tests
30+
31+
after_failure:
32+
- ./travis-tool.sh dump_logs
33+
34+
notifications:
35+
email:
36+
on_success: change
37+
on_failure: change

appveyor.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# DO NOT CHANGE the "init" and "install" sections below
2+
3+
# Download script file from GitHub
4+
init:
5+
ps: |
6+
$ErrorActionPreference = "Stop"
7+
Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1"
8+
Import-Module '..\appveyor-tool.ps1'
9+
10+
install:
11+
ps: Bootstrap
12+
13+
# Adapt as necessary starting from here
14+
15+
build_script:
16+
- travis-tool.sh install_deps
17+
18+
test_script:
19+
- travis-tool.sh run_tests
20+
21+
on_failure:
22+
- travis-tool.sh dump_logs
23+
24+
artifacts:
25+
- path: '*.Rcheck\**\*.log'
26+
name: Logs
27+
28+
- path: '*.Rcheck\**\*.out'
29+
name: Logs
30+
31+
- path: '*.Rcheck\**\*.fail'
32+
name: Logs
33+
34+
- path: '*.Rcheck\**\*.Rout'
35+
name: Logs
36+
37+
- path: '\*_*.tar.gz'
38+
name: Bits
39+
40+
- path: '\*_*.zip'
41+
name: Bits

0 commit comments

Comments
 (0)