forked from JuliaInterop/Cxx.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (63 loc) · 2.21 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
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
- gcc-6
- g++-6
- binutils
- gfortran
- libblas-dev
- liblapack-dev
- libgmp-dev
- libmpfr-dev
matrix:
include:
- language: julia
julia: 0.6
os: linux
- language: julia
julia: nightly
os: linux
- language: julia
julia: 0.6
os: osx
allow_failures:
- language: julia
julia: nightly
os: linux
cache:
directories:
- $(julia -e 'println(Pkg.dir())')/Cxx/deps/src
- $(julia -e 'println(Pkg.dir())')/Cxx/deps/build
- ~/usr
before_cache:
- rm ~/.julia/0.5/Cxx/deps/build/bootstrap.o
- rm -rf ~/.julia/0.5/deps/usr
install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="g++-6" CC="gcc-6"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CXX="clang++" CC="clang"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export PATH="$HOME/usr/bin:$PATH"; fi
- export THE_PKG_DIR=`julia -e 'println(Pkg.dir())'`
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ! -f $HOME/usr/bin/ld ]; then
wget https://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz;
tar xzf binutils-2.27.tar.gz;
(cd binutils-2.27 && ./configure --prefix=$HOME/usr && make && make install);
fi;
- julia -e 'versioninfo()'
- mv $THE_PKG_DIR/Cxx $THE_PKG_DIR/Cxx-cache
- julia -e 'Pkg.clone(pwd())'
- mv $THE_PKG_DIR/Cxx-cache/deps/src $THE_PKG_DIR/Cxx/deps/src || true
- mv $THE_PKG_DIR/Cxx-cache/deps/build $THE_PKG_DIR/Cxx/deps/build || true
- if [ ! -f $HOME/early_abort ]; then PREBUILT_CI_BINARIES=1 julia -e 'Pkg.build("Cxx")' || false; fi
- if [ ! -f $HOME/early_abort ]; then julia -e 'Pkg.test("Cxx"; coverage=true)' || false; fi
after_success:
- julia -e 'cd(Pkg.dir("Cxx")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
- julia -e 'cd(Pkg.dir("Cxx")); Pkg.add("Documenter"); include(joinpath("docs", "make.jl"))'
notifications:
email: false