-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
63 lines (55 loc) · 1.75 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: r
warnings_are_errors: true
sudo: required
cache: packages
os:
- linux
- osx
before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ];
then
sudo apt-get update -qq ;
sudo apt-get install libmng2 ;
sudo apt-get install libmng1 ;
sudo updatedb;
fi
- wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslinstaller.py || echo "couldn't download";
- python --version
- if [[ -f fslinstaller.py ]];
then
travis_wait 100 sudo python fslinstaller.py -d /usr/local/fsl --quiet || echo "couldn't install";
fi
# - if [ "$TRAVIS_OS_NAME" = "linux" ];
# then
# OS_DISTRIBUTION=$(lsb_release -cs) ;
# echo ${OS_DISTRIBUTION};
# wget -O- http://neuro.debian.net/lists/${OS_DISTRIBUTION}.us-nh.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list ;
# sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9 ;
# sudo apt-get update -qq ;
# sudo apt-get install -y fsl ;
# fi
# - if [ "$TRAVIS_OS_NAME" = "osx" ];
# then
# wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslinstaller.py ;
# sudo python fslinstaller.py -d /usr/local/fsl -q ;
# fi
r_check_args: "--as-cran --install-args=--build"
after_success:
- Rscript -e 'covr::coveralls(type = "all")'
- Rscript -e 'covr::codecov(type = "all")'
notifications:
email:
on_success: change
on_failure: change
before_cache: Rscript -e 'remotes::install_cran("pkgdown")'
deploy:
- provider: releases
skip_cleanup: true
file_glob: true
file: fslr*.t*gz
on:
tags: true
repo: muschellij2/fslr
- provider: script
script: Rscript -e 'pkgdown::deploy_site_github()'
skip_cleanup: true