-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (42 loc) · 1.77 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
language: c
sudo: required
before_install:
- rm -rf ~/.linuxbrew
- yes | ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
- export PATH="$HOME/.linuxbrew/bin:$PATH"
- export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
- export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
- brew install jdk
- export JAVA_HOME=/home/travis/.linuxbrew/Cellar/jdk/1.8.0-60
# - export JAVA_HOME=/home/travis/.linuxbrew/Cellar/jdk/1.7.0_80
# - jdk_switcher use openjdk7
- java -version
# - sudo ln -f -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/lib
- curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
- chmod 755 ./travis-tool.sh
- ./travis-tool.sh bootstrap
install:
- mkdir ~/.R
- ./travis-tool.sh install_github jimhester/covr
# - ./travis-tool.sh r_binary_install rJava
- sudo R CMD javareconf JAVA_HOME=/home/travis/.linuxbrew/Cellar/jdk/1.8.0-60
# - sudo R CMD javareconf JAVA_HOME=/home/travis/.linuxbrew/Cellar/jdk/1.7.0_80
- Rscript -e "install.packages('rJava', type='source', repos = 'http://cran.nexr.com');"
- ./travis-tool.sh r_binary_install stringr
- ./travis-tool.sh r_binary_install KoNLP
- ./travis-tool.sh r_binary_install testthat
- ./travis-tool.sh r_binary_install devtools
- ./travis-tool.sh install_deps
before_script:
- Rscript -e "library(rJava); .jinit(); .jcall('java/lang/System','S','getProperty','sun.boot.library.path');"
- R CMD INSTALL .
# - Rscript -e "library(rJava); library(stringr); library(KoNLP); library(testthat); library(devtools);"
script: ./travis-tool.sh run_tests
after_failure:
- ./travis-tool.sh dump_logs
after_success:
- Rscript -e 'library(covr);codecov()'
#notifications:
# email:
# on_success: change
# on_failure: change