-
Notifications
You must be signed in to change notification settings - Fork 18
/
.travis.yml
114 lines (99 loc) · 3.16 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: cpp
sudo: true
dist: focal
compiler: g++-10
os: linux
env:
global:
- DEPS_DIR=${TRAVIS_BUILD_DIR}/deps
- CMAKE_VERSION="3.16.0"
- GCC_VERSION=10
- BUILD_TYPE=Release
- CPPSTD=17
addons:
apt:
sources:
- sourceline: 'ppa:ubuntu-toolchain-r/test'
packages:
- gcc-10
- g++-10
cache:
directories:
- ${DEPS_DIR}/cmake-${CMAKE_VERSION}
# - env: GCC_VERSION=10 BUILD_TYPE=Release CPPSTD=17
# os: linux
# addons: *gcc8
#
# - env: CLANG_VERSION=11 BUILD_TYPE=Release CPPSTD=17
# os: linux
# addons: &clang11
# apt:
# packages:
# - clang-11
# - libstdc++-10-dev
# - cmake
# sources:
# - ubuntu-toolchain-r/test
#
# - llvm-toolchain-xenial-4.0
#- env: XCODE_VERSION=9.4 BUILD_TYPE=Release CPPSTD=14
# os: osx
# osx_image: xcode9.4
#- env: XCODE_VERSION=10.2 BUILD_TYPE=Release CPPSTD=14
# os: osx
# osx_image: xcode10.2
#- env: BUILD_TYPE=Release CPPSTD=14
# os: osx
# compiler: clang
before_script:
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
- sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
- sudo apt-get update
before_install:
- set -e
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install gnu-sed
brew install gnu-which
brew upgrade cmake
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
fi
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
- echo ${DEPS_DIR}
- pwd
- ls
- ls ${DEPS_DIR}
- set +e; cd ${DEPS_DIR}; set -e; git clone https://github.com/google/googletest.git
- set +e; cd ${DEPS_DIR}; set -e; git clone https://github.com/oneapi-src/oneTBB.git
- which $CXX & $CXX --version
install:
- pwd
- mkdir -p build
- mkdir -p build/gtest/$BUILD_TYPE
- set +e; cd build/gtest/$BUILD_TYPE; set -e; pwd
- cmake ${DEPS_DIR}/googletest -DBUILD_GMOCK=OFF -DBUILD_GTEST=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${DEPS_DIR}/external -DCMAKE_CXX_STANDARD=$CPPSTD
- make -j 2
- make install
- set +e; cd ${TRAVIS_BUILD_DIR}; set -e; pwd
- ls -l
- set +e; cd ${DEPS_DIR}; set -e; pwd
- mkdir -p build/onetbb/$BUILD_TYPE
- set +e; cd build/onetbb/$BUILD_TYPE; set -e; pwd
- ls -l
- ls ${DEPS_DIR}
- ls ${DEPS_DIR}/oneTBB
- cmake ${DEPS_DIR}/oneTBB -DCMAKE_BUILD_TYPE=Release -DTBB_TEST=OFF -DTBB_STRICT=OFF -DCMAKE_INSTALL_PREFIX=${DEPS_DIR}/external -DCMAKE_CXX_STANDARD=$CPPSTD
- make -j 2
- make install
- mkdir -p ${TRAVIS_BUILD_DIR}/build
- set +e; cd ${TRAVIS_BUILD_DIR}/build; set -e; pwd
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=${DEPS_DIR}/external -DCMAKE_CXX_STANDARD=$CPPSTD -DGRPPI_FF_ENABLE=OFF
- cat CMakeFiles/CMakeError.log || true
- cat CMakeFiles/CMakeOutput.log || true
- make -j2
#- ctest -VV --timeout 10
script:
- export OMP_NUM_THREADS=8
- ctest -VV --timeout 100