-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 1.47 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
# Sample .travis.yml for R projects.
#
# see the wiki:
# https://github.com/craigcitro/r-travis/wiki
language: c
sudo: required
before_install:
# R
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
# debug
- g++ --version
# Install dependencies of C++ tests
- R -e "install.packages('BH', repos='http://cran.us.r-project.org');"
- sudo apt-get install libarmadillo-dev libboost-dev libgtest-dev
- ln -s /usr/src/gtest gtest && cd gtest && sudo cmake CMakeLists.txt && sudo make && sudo cp *.a /usr/lib && cd .. && rm gtest
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9
- export CXX="g++-4.9"
# Test datasets
- cd inst/dev/datasets/svm/ && ./download_large.sh && cd ../../../..
- cd inst/dev/datasets/svm/ && ./download_transduction.sh && cd ../../../..
install:
- ./travis-tool.sh install_deps
# Install dependencies of R tests
- Rscript -e 'library("devtools"); library("methods"); options(repos=c(CRAN="http://cran.rstudio.com")); install_deps(dependencies = "Suggests")'
# Compile C++ tests
- cd tests/cpp/ && make clean && make && cd ../..
script:
- cd tests/cpp/ && ./run_primary_tests.sh && cd ../..
- ./travis-tool.sh run_tests
after_failure:
- ./travis-tool.sh dump_logs
- cat boost_1_58_0/boost_log
notifications:
email:
on_success: change
on_failure: change