forked from bleutner/RStoolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (56 loc) · 1.94 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
63
64
65
language: c
sudo: required
warnings_are_errors: true
branches:
except:
- example-data
- gh-pages
before_install:
- curl -OL https://raw.githubusercontent.com/bleutner/r-builder/master/pkg-build.sh
#- curl -OL https://raw.githubusercontent.com/metacran/r-builder/master/pkg-build.sh
- chmod 755 pkg-build.sh
- ./pkg-build.sh bootstrap
before_script:
- sudo apt-get install aptitude -y
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update -qq
- sudo aptitude install -y gdal-bin
- sudo aptitude install -y libgdal1-dev
- sudo aptitude install -y libproj-dev
# - wget https://github.com/bleutner/withr/blob/master/withr_1.0.0.9000.tar.gz?raw=true
# - mv withr_1.0.0.9000.tar.gz\?raw\=true withr_1.0.0.9000.tar.gz
# - ./pkg-build.sh install_r_local withr_1.0.0.9000.tar.gz
# - rm withr_1.0.0.9000.tar.gz
- ./pkg-build.sh install_devtools
- ./pkg-build.sh install_r lme4
- wget http://stat.ethz.ch/CRAN/src/contrib/Archive/pbkrtest/pbkrtest_0.4-5.tar.gz
- ./pkg-build.sh install_r_local pbkrtest_0.4-5.tar.gz
- rm pbkrtest_0.4-5.tar.gz
# - ./pkg-build.sh install_r_version car 2.0-25
- ./pkg-build.sh install_deps
# Run twice, just to be sure because sometimes cran mirror fails randomly
- ./pkg-build.sh install_deps
- wget http://cran.r-project.org/src/contrib/Archive/rgdal/rgdal_1.2-5.tar.gz
- ./pkg-build.sh install_r_local rgdal_1.2-5.tar.gz
- rm rgdal_1.2-5.tar.gz
- ./pkg-build.sh install_r rgdal
- ./pkg-build.sh install_r covr
- ./pkg-build.sh dump_sysinfo
script:
- ./pkg-build.sh run_build
- ./pkg-build.sh run_check
after_failure:
- ./pkg-build.sh dump_logs
notifications:
email:
on_success: change
on_failure: change
env:
matrix:
# - RVERSION=oldrel
# - RVERSION=release
- RVERSION=devel COVERAGE=true
r_github_packages:
- jimhester/covr
after_success:
- if [[ ! -z "$COVERAGE" ]];then ./pkg-build.sh run_script -e 'covr::codecov()'; fi