forked from lballabio/QuantLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 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
language: cpp
os: linux
dist: trusty
compiler: gcc
services: docker
cache: ccache
env:
global:
- DOCKER_OPTS="--rm -ti -v ${HOME}/.ccache:/root/.ccache -v ${TRAVIS_BUILD_DIR}:/build -w /build"
matrix:
# Regression test with old Boost version, gcc 4.8
- DOCKER_IMAGE=lballabio/quantlib-devenv:1.54.0-trusty
CACHEDCC="ccache gcc" CACHEDCXX="ccache g++"
CXXFLAGS="-O2 -Wall -Wno-unknown-pragmas -Werror -std=c++03"
# Boost 1.66, gcc 5.4, strict C++03 mode
- DOCKER_IMAGE=lballabio/quantlib-devenv:1.66.0-xenial
CACHEDCC="ccache gcc" CACHEDCXX="ccache g++"
CXXFLAGS="-O2 -Wall -Wno-unknown-pragmas -Werror -std=c++03"
# Boost 1.66, gcc 6.3, C++11 mode
- DOCKER_IMAGE=lballabio/quantlib-devenv:1.66.0-zesty
CACHEDCC="ccache gcc" CACHEDCXX="ccache g++"
CXXFLAGS="-O2 -Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror -std=c++11"
# Latest Boost, gcc 7.3, C++14 mode
- DOCKER_IMAGE=lballabio/quantlib-devenv:bionic
CACHEDCC="ccache gcc" CACHEDCXX="ccache g++"
CXXFLAGS="-O2 -Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror -std=c++14"
# Latest Boost, gcc 8.2, C++17 mode
- DOCKER_IMAGE=lballabio/quantlib-devenv:cosmic
CACHEDCC="ccache gcc" CACHEDCXX="ccache g++"
CXXFLAGS="-O2 -Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror -std=c++17"
# Latest Boost, clang 6.0
- DOCKER_IMAGE=lballabio/quantlib-devenv:bionic
CACHEDCC="ccache clang" CACHEDCXX="ccache clang++"
CXXFLAGS="-O2 -Wall -Wno-unknown-pragmas -Wno-deprecated-declarations -Werror"
before_install:
- docker pull ${DOCKER_IMAGE}
script:
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} ./autogen.sh
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} ./configure --disable-static CC="${CACHEDCC}" CXX="${CACHEDCXX}" CXXFLAGS="${CXXFLAGS}"
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} ccache --zero-stats
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} ccache --max-size=2.5G
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} ccache --show-stats
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} make -j 2
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} ccache --show-stats
- docker run ${DOCKER_OPTS} ${DOCKER_IMAGE} ./test-suite/quantlib-test-suite --log_level=message -- --faster