-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (30 loc) · 1.53 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
language: r
os:
- linux
- osx
cache: packages
r_packages:
notifications:
email: false
before_install:
- mkdir -p ~/Downloads
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then curl -L https://julialang-s3.julialang.org/bin/linux/x64/0.6/julia-0.6.2-linux-x86_64.tar.gz -o "$HOME/Downloads/julia.tar.gz"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then tar xzf "$HOME/Downloads/julia.tar.gz" -C "$HOME/Downloads"; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then cp -r "$(find "$HOME/Downloads" -maxdepth 2 -name "julia*" -type d | head -n 1)" "$HOME/julia"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then curl -L https://julialang-s3.julialang.org/bin/mac/x64/0.6/julia-0.6.2-mac64.dmg -o "$HOME/Downloads/julia.dmg"; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then hdiutil attach ~/Downloads/julia.dmg; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then cp -r /Volumes/Julia*/Julia*/Contents/Resources/julia $HOME/julia; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then hdiutil detach -force /Volumes/Julia*; fi
- rm -rf ~/Downloads/julia*
- export PATH="$HOME/julia/bin:$PATH"
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then export R_LD_LIBRARY_PATH="$(R RHOME)/lib:$HOME/julia/lib/julia"; fi
- julia -e 'Pkg.add("FixedEffectModels")'
- julia -e 'Pkg.add("InteractiveFixedEffectModels")'
- julia -e 'Pkg.add("StatsModels")'
- julia -e 'Pkg.add("Distributions")'
- julia -e 'Pkg.add("DataFrames")'
- julia -e 'using FixedEffectModels, InteractiveFixedEffectModels'
r_packages:
- covr
after_success:
- Rscript -e 'library(covr); codecov()'