Skip to content

Commit 2b1aa73

Browse files
committed
Temporarily switch to contained build and add appveyor.
1 parent 753ff43 commit 2b1aa73

File tree

3 files changed

+85
-15
lines changed

3 files changed

+85
-15
lines changed

.Rbuildignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
^doc$
1111
^src/.*\.o$
1212
^gen/
13+
^appveyor\.yml$
14+
^\.travis\.yml$

.travis.yml

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,50 @@
1-
# Run Travis CI for R using https://eddelbuettel.github.io/r-travis/
1+
language: r
2+
sudo: false
3+
cache: packages
4+
warnings_are_errors: true
5+
latex: false
6+
dist: trusty
27

3-
language: c
8+
matrix:
9+
include:
10+
- os: linux
11+
r: release
12+
addons:
13+
apt:
14+
packages:
15+
- valgrind
16+
r_check_args: '--as-cran --use-valgrind'
17+
env:
18+
- VALGRIND_OPTS='--leak-check=full --track-origins=yes'
419

5-
sudo: required
20+
- os: linux
21+
compiler: clang
22+
r: release
623

7-
dist: trusty
24+
- os: linux
25+
r: devel
26+
compiler: clang
827

9-
group: edge
28+
- os: linux
29+
r: devel
30+
compiler: gcc
1031

11-
before_install:
12-
- curl -OLs https://eddelbuettel.github.io/r-travis/run.sh && chmod 0755 run.sh
13-
- ./run.sh bootstrap
32+
- os: linux
33+
r: oldrel
34+
compiler: clang
1435

15-
install:
16-
- ./run.sh install_aptget r-cran-rcpp r-cran-bh r-cran-runit r-cran-knitr r-cran-rmarkdown
36+
- os: linux
37+
r: oldrel
38+
compiler: gcc
1739

18-
script:
19-
- ./run.sh run_tests
40+
- os: osx
41+
r: release
2042

21-
after_failure:
22-
- ./run.sh dump_logs
43+
- os: osx
44+
r: oldrel
2345

2446
notifications:
2547
email:
2648
on_success: change
27-
on_failure: change
49+
on_failure: change
50+

appveyor.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
cache:
14+
- C:\RLibrary
15+
16+
# Adapt as necessary starting from here
17+
18+
build_script:
19+
- travis-tool.sh install_deps
20+
21+
test_script:
22+
- travis-tool.sh run_tests
23+
24+
on_failure:
25+
- 7z a failure.zip *.Rcheck\*
26+
- appveyor PushArtifact failure.zip
27+
28+
artifacts:
29+
- path: '*.Rcheck\**\*.log'
30+
name: Logs
31+
32+
- path: '*.Rcheck\**\*.out'
33+
name: Logs
34+
35+
- path: '*.Rcheck\**\*.fail'
36+
name: Logs
37+
38+
- path: '*.Rcheck\**\*.Rout'
39+
name: Logs
40+
41+
- path: '\*_*.tar.gz'
42+
name: Bits
43+
44+
- path: '\*_*.zip'
45+
name: Bits

0 commit comments

Comments
 (0)