Skip to content

Commit caf363b

Browse files
committed
add travis and appveyor
Travis CI tests that the package installs on macOS and Linux. Appveyor tests that the package installs on Windows.
1 parent ae9954d commit caf363b

File tree

4 files changed

+73
-12
lines changed

4 files changed

+73
-12
lines changed

.travis.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
# Sample .travis.yml for R projects
2-
31
language: r
2+
os: linux
3+
cache: packages
4+
warnings_are_errors: true
5+
r_check_args: "--no-manual --timings"
46

57
bioc_packages:
68
- BiocStyle
79
- SingleCellExperiment
810

9-
matrix:
11+
jobs:
1012
include:
1113
- r: release
1214
os: osx
1315
- r: release
1416
os: linux
15-
# - r: devel
16-
# os: linux
17-
18-
sudo: false
19-
cache: packages
20-
warnings_are_errors: true
21-
r_check_args: "--no-manual --timings"
2217

2318
env:
2419
global:

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ Imports:
2828
Matrix,
2929
methods,
3030
tibble,
31-
rlang
31+
rlang,
32+
SingleCellExperiment
3233
Suggests:
3334
Seurat,
34-
SingleCellExperiment,
3535
testthat,
3636
knitr,
3737
rmarkdown,

appveyor.yml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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+
# This is a good reference:
14+
# https://github.com/Bioconductor/BiocManager/blob/master/appveyor.yml
15+
16+
cache:
17+
- C:\RLibrary
18+
19+
environment:
20+
global:
21+
_R_CHECK_FORCE_SUGGESTS_: false
22+
R_ARCH: x64
23+
USE_RTOOLS: true
24+
R_CHECK_ARGS: "--no-manual --timings"
25+
26+
matrix:
27+
- R_VERSION: release
28+
BIOC_USE_DEVEL: FALSE
29+
30+
build_script:
31+
- echo Current directory=%CD%
32+
- travis-tool.sh install_deps
33+
- travis-tool.sh install_bioc_deps
34+
- travis-tool.sh install_r Seurat
35+
36+
test_script:
37+
- travis-tool.sh run_tests
38+
39+
on_failure:
40+
- 7z a failure.zip *.Rcheck\*
41+
- appveyor PushArtifact failure.zip
42+
43+
artifacts:
44+
- path: '*.Rcheck\**\*.log'
45+
name: Logs
46+
47+
- path: '*.Rcheck\**\*.out'
48+
name: Logs
49+
50+
- path: '*.Rcheck\**\*.fail'
51+
name: Logs
52+
53+
- path: '*.Rcheck\**\*.Rout'
54+
name: Logs
55+
56+
- path: '\*_*.tar.gz'
57+
name: Bits
58+
59+
- path: '\*_*.zip'
60+
name: Bits

configure

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
if [ $(uname) == "Linux" ]
3+
then
4+
echo 'CXX_STD = CXX11' > ./src/Makevars
5+
echo 'PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)' >> ./src/Makevars
6+
fi

0 commit comments

Comments
 (0)