forked from blitzpp/blitz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (63 loc) · 2.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
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
65
66
67
68
69
70
71
72
language: cpp
matrix:
include:
# - os: linux
# env: COMPILER=icc CMAKE_BUILD_TYPE=Debug
- os: linux
env: COMPILER=gcc CMAKE_BUILD_TYPE=Debug
- os: linux
env: COMPILER=clang CMAKE_BUILD_TYPE=Debug
- os: osx
env: COMPILER=clang CMAKE_BUILD_TYPE=Debug
# - os: linux
# env: COMPILER=icc CMAKE_BUILD_TYPE=Release
- os: linux
env: COMPILER=gcc CMAKE_BUILD_TYPE=Release
- os: linux
env: COMPILER=clang CMAKE_BUILD_TYPE=Release
- os: osx
env: COMPILER=clang CMAKE_BUILD_TYPE=Release
fast_finish: true
install:
- |
if [ "${TRAVIS_OS_NAME}" == 'linux' ]; then
sudo apt-get --no-install-recommends install texinfo texi2html texlive-base texlive-generic-recommended texlive-fonts-recommended doxygen graphviz texlive-latex-base texlive-latex-recommended texlive-latex-extra python-git
else
brew install texinfo
brew ln texinfo --force
brew upgrade cmake
fi
- |
if [ $COMPILER == icc ]; then
wget "https://raw.githubusercontent.com/nemequ/icc-travis/master/install-icc.sh"
sudo sh install-icc.sh
source ~/.bashrc
export CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_CXX_COMPILER=icpc -DCMAKE_C_COMPILER=icc"
fi
- |
if [ $COMPILER == clang ]; then
export CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang"
fi
script:
- |
srcdir='..'
mkdir build
cd build
cmake $CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_DOC=ON -DBUILD_TESTING=ON -DDISABLE_REFMAN_PDF=ON ..
- make lib
- export CTEST_OUTPUT_ON_FAILURE=1
- |
if [ $COMPILER != icc ]; then
make check-testsuite # Build and check the testsuite
make check-examples # Build and check the examples
# TODO! (fails with error: no such file or directory: 'arrdaxpyf.o')
# - make check-benchmarks # Build and check the benchmarks (takes a long time)
make blitz-doc
sudo make install # Install Blitz++
fi
- |
if [ "${TRAVIS_OS_NAME}" == 'linux' ]; then
LD_LIBRARY_PATH=/usr/local/lib ${srcdir}/travis-ci/check-wiki-examples.py
fi
after_script:
- if [ $COMPILER == icc ]; then '[[ ! -z "${INTEL_INSTALL_PATH}" ]] && uninstall_intel_software'; fi