forked from mlampros/textTinyR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (78 loc) · 4.54 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r
language: r
sudo: true
branches:
only:
- master
os:
- linux
#- osx
compiler:
- gcc
#- clang
env:
global:
- CMAKE_BUILD_TYPE=RELEASE
- R_BUILD_ARGS="--no-build-vignettes --no-manual"
- R_CHECK_ARGS="--no-build-vignettes --no-manual --as-cran"
before_install:
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get update -qq; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install -qq; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo add-apt-repository -y 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main'; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo add-apt-repository ppa:boost-latest/ppa -y; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get update -qq; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install libboost1.55-dev libboost-filesystem1.55-dev libboost-locale1.55-dev; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get -qq install gcc-4.9; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get -qq install g++-4.9; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.9 90; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install libarmadillo-dev libopenblas-dev libblas-dev libarpack++2-dev liblapack-dev; fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo apt-get install libgfortran3 gfortran; fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3 /usr/lib/libgfortran.so; fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo apt-get install r-base-dev; fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then sudo apt-get update; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ "$CXX" == "clang++" ]]; then sudo apt-get install --allow-unauthenticated -qq clang-3.8 lldb-3.8; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]] && [[ "$CXX" == "clang++" ]]; then export CXX="clang++-3.8" CC="clang-3.8"; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo chown -R `whoami`:admin /usr/local/bin; fi # http://stackoverflow.com/questions/26647412/homebrew-could-not-symlink-usr-local-bin-is-not-writable
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
#-------------------------------------------------------------------------------------------------------
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew reinstall gcc --without-multilib; fi # enable OpenMP
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew link --overwirte gcc; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
#---------------------------------------------------------------------------------------------------------
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install cmake; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install wget; fi
#---------------------------------------------------------------------------------------------------------
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install homebrew/science/armadillo; fi
#---------------------------------------------------------------------------------------------------------
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then wget http://sourceforge.net/projects/arma/files/armadillo-7.600.2.tar.xz; fi # download, build, install the latest armadillo version
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then tar xf armadillo-7.600.2.tar.xz; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cd armadillo-7.600.2/; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then cmake .; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then make; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then sudo make install; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install boost; fi
#- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
r_packages:
- devtools
- roxygen2
- testthat
- Rcpp
- RcppArmadillo
- covr
- Matrix
- R6
- data.table
- utils
- BH
- knitr
- rmarkdown
after_success:
- Rscript -e 'covr::codecov(line_exclusions = c("R/RcppExports.R", "src/RcppExports.cpp"), quiet = FALSE)'
notifications:
email:
on_success: change
on_failure: change