-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (36 loc) · 906 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: R
sudo: false
cache: packages
addons:
apt:
packages:
- libglu1-mesa-dev
env:
global:
- RGL_USE_NULL=TRUE
warnings_are_errors: true
stages:
- name: pre-cache1
- name: pre-cache2
- name: test
jobs:
include:
- stage: pre-cache1
before_install:
- echo 'options(Ncpus = 2)' >> ~/.Rprofile
install:
- R -e 'install.packages(c("remotes", "rgl"))'
script: true
- stage: pre-cache2
before_install:
- echo 'options(Ncpus = 2)' >> ~/.Rprofile
install:
- R -e 'remotes::install_github("natverse/nat",dependencies = TRUE)'
script: true
- stage: test
before_install:
- echo 'options(Ncpus = 2)' >> ~/.Rprofile
after_success:
- Rscript -e 'install.packages("covr")'
- Rscript -e 'covr::coveralls()'