-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
62 lines (59 loc) · 2.69 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
language: cpp
dist: trusty
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- g++-6
- clang-4.0
- libboost-all-dev
- liblapack-dev
#cache:
#directories:
# - "deps/blaze/install"
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-6"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-4.0"; fi
# don't build in source dir
- cd ..
# CMake 3.5 is required by Blaze; Trusty PPA's have 3.2.x
- wget --no-check-certificate https://cmake.org/files/v3.5/cmake-3.5.2-Linux-x86_64.sh
- chmod a+x cmake-3.5.2-Linux-x86_64.sh
- sudo ./cmake-3.5.2-Linux-x86_64.sh --skip-license --prefix=/usr/local
- pushd .
- mkdir -p deps
- cd deps
- if [ ! -d "blaze" ]; then export BUILD_BLAZE="yes"; else export BUILD_BLAZE="no"; fi
- if [ "$BUILD_BLAZE" == "yes" ]; then mkdir blaze && cd blaze && git clone https://bitbucket.org/blaze-lib/blaze.git && mkdir build && mkdir install; fi
- if [ "$BUILD_BLAZE" == "yes" ]; then cd build && cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/../install ../blaze && cmake --build . --target install && cd ../install; fi
- if [ "$BUILD_BLAZE" == "no" ]; then cd blaze/install ; fi
- export BLAZE_ROOT="$(pwd)"
- popd
- pushd .
- if [ ! -d "eigen" ]; then export BUILD_EIGEN="yes"; else export BUILD_EIGEN="no"; fi
- if [ "$BUILD_EIGEN" == "yes" ]; then mkdir eigen && cd eigen && hg clone https://bitbucket.org/eigen/eigen/ && mkdir build && mkdir install; fi
- if [ "$BUILD_EIGEN" == "yes" ]; then cd build && cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/../install ../eigen && cmake --build . --target install && cd ../install; fi
- if [ "$BUILD_EIGEN" == "no" ]; then cd eigen/install; fi
- export EIGEN_ROOT="$(pwd)"
- popd
- pushd .
- if [ ! -d "armadillo" ]; then export BUILD_ARMA="yes"; else export BUILD_ARMA="no"; fi
- if [ "$BUILD_ARMA" == "yes" ]; then mkdir armadillo && cd armadillo && git clone https://github.com/conradsnicta/armadillo-code/ arma && cd arma && git checkout origin/7.960.x && cd ..; fi
- if [ "$BUILD_ARMA" == "yes" ]; then mkdir build && mkdir install && cd build && cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/../install ../arma && cmake --build . --target install && cd ../install; fi
- if [ "$BUILD_ARMA" == "no" ]; then cd armadillo/install; fi
- export ARMADILLO_ROOT="$(pwd)"
- popd
script:
- mkdir build && cd build
- cmake -DWITH_ARMADILLO=On -DWITH_BLAZE=On -DWITH_EIGEN=On -DWITH_EXAMPLES=On -DWITH_TESTS=On -DWITH_BLAS=On -DWITH_LAPACK=On -DCMAKE_PREFIX_PATH="$EIGEN_ROOT;$ARMADILLO_ROOT" ../MatrixGeneratorCpp
- VERBOSE=1 cmake --build .
- ctest -VV
notifications:
email:
on_success: never
on_failure: always