forked from pluskid/Mocha.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.24 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
notifications:
email: false
env:
matrix:
- JULIAVERSION="juliareleases"
- JULIAVERSION="julianightlies"
before_install:
- if [ `uname` = "Linux" ]; then
sudo add-apt-repository ppa:staticfloat/julia-deps -y;
sudo add-apt-repository ppa:staticfloat/${JULIAVERSION} -y;
sudo apt-get update -qq -y;
sudo apt-get install libpcre3-dev julia -y;
elif [ `uname` = "Darwin" ]; then
if [ "$JULIAVERSION" = "julianightlies" ]; then
wget -O julia.dmg "http://status.julialang.org/download/osx10.7+";
else
wget -O julia.dmg "http://status.julialang.org/stable/osx10.7+";
fi;
hdiutil mount julia.dmg;
cp -Ra /Volumes/Julia/*.app/Contents/Resources/julia ~;
export PATH="$PATH:$(echo ~)/julia/bin";
fi
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
script:
- julia -e 'Pkg.init(); Pkg.clone(pwd()); Pkg.test("Mocha", coverage=true)'
- MOCHA_USE_NATIVE_EXT=true julia -e 'Pkg.build("Mocha"); Pkg.test("Mocha", coverage=true)'
after_success:
- julia -e 'cd(Pkg.dir("Mocha")); Pkg.add("Coverage"); include(joinpath(Pkg.dir("Mocha"), "tools/coverage-hack.jl")); Coveralls.submit(process_folder("src",["cuda"]))'