forked from conradsnicta/armadillo-code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (46 loc) · 1.7 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
language: cpp
matrix:
include:
- os: linux
dist: trusty
compiler: gcc
sudo: required
- os: linux
dist: trusty
compiler: clang
sudo: required
- os: osx
compiler: clang
osx_image: xcode7.3
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- gcc-4.8
- g++-4.8
- clang
- cmake
- cmake-data
- gfortran
- libopenblas-dev
- liblapack-dev
- libarpack++2-dev
- libhdf5-serial-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install homebrew/science/superlu homebrew/science/hdf5; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/xiaoyeli/superlu && cd superlu; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git checkout v5.2.1; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir build && cd build && cmake -DBUILD_SHARED_LIBS=true -DUSE_XSDK_DEFAULTS=true .. && make && sudo make install && cd ../.. && rm -rf superlu; fi
- pip install --user cpp-coveralls
install:
- if [[ ("$TRAVIS_OS_NAME" == "linux") && ( "$CXX" == "g++") ]]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
script:
- mkdir -p build
- cd build
- export ARMADILLO_COVERAGE=$(if [[ ("$TRAVIS_OS_NAME" == "linux") && ("$CXX" != "clang++") ]]; then echo "ON"; else echo "OFF"; fi)
- cmake -DDETECT_HDF5=ON -DCMAKE_BUILD_TYPE=Debug -DARMADILLO_COVERAGE=$ARMADILLO_COVERAGE .. && make && make check
after_success:
- if [[ "$ARMADILLO_COVERAGE" == "ON" ]]; then make coverage && coveralls --root .. --exclude lib --exclude /usr --gcov-options '\-lp'; fi