-
Notifications
You must be signed in to change notification settings - Fork 29
/
.travis.yml
58 lines (54 loc) · 1.75 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
language: cpp
dist: bionic
sudo: required
osx_image: xcode12.2
jobs:
include:
- env: TEST_INSTALL=1 RUN_TEST=1 THREADING="pthread" BUILD_CONFIG="auto" CC=clang
os: osx
- env: TEST_INSTALL=1 RUN_TEST=1 THREADING="openmp" BUILD_CONFIG="auto" CC=gcc
os: linux
- env: TEST_INSTALL=1 RUN_TEST=1 THREADING="pthread" BUILD_CONFIG="auto" CC=gcc
os: linux
- env: TEST_INSTALL=1 RUN_TEST=1 THREADING="tbb" BUILD_CONFIG="auto" CC=gcc
os: linux
- env: TEST_INSTALL=1 RUN_TEST=1 THREADING="none" BUILD_CONFIG="auto" CC=gcc
os: linux
- env: TEST_INSTALL=1 RUN_TEST=1 THREADING="none" BUILD_CONFIG="auto" CC=clang
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-6
packages:
- gcc-9
- g++-9
- clang-6.0
- libiomp-dev
- libtbb-dev
#- binutils-2.26
install:
#- 'if [ "$TRAVIS_OS_NAME" = "linux" ]; then
# export PATH=/usr/lib/binutils-2.26/bin:${PATH};
# fi'
- if [ "$CC" = "gcc" ] ; then export CC="gcc-9" CXX="g++-9"; fi
- 'if [ "$CC" = "clang" ] ; then
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
export CC="clang-6.0 -fopenmp=libiomp5" CXX="clang++-6.0 -fopenmp=libiomp5";
else
export CC="clang" CXX="clang++";
fi;
fi'
script:
- $CC --version
- $CXX --version
- as --version
- ./configure CC="$CC" CXX="$CXX" --enable-threading="$THREADING" --enable-config="$BUILD_CONFIG" --prefix=`pwd`/install
- cat config.log src/external/tci/config.log
- make -j 2
- if [ $RUN_TEST -eq 1 ]; then travis_wait 30 bin/test; fi
- 'if [ $TEST_INSTALL -eq 1 ]; then
make install;
$CXX -std=c++14 -o test_install -I./install/include test/test_install.cxx -L./install/lib -ltblis;
fi'