-
Notifications
You must be signed in to change notification settings - Fork 213
/
.travis.yml
55 lines (48 loc) · 1.66 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
# Travis-CI Build for SimpleAmqpClient
# see travis-ci.org for details
language: cpp
os: linux
dist: xenial
jobs:
include:
- compiler: gcc
env: FLAGS=""
- compiler: clang
env: FLAGS=""
- compiler: clang
env: FLAGS="-g -O1 -fsanitize=address,undefined -fno-omit-frame-pointer"
- compiler: clang
env: FLAGS="-g -O1 -fsanitize=thread -fno-omit-frame-pointer"
addons:
apt:
sources:
- sourceline: deb http://dl.bintray.com/rabbitmq-erlang/debian xenial erlang
key_url: https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
- sourceline: deb https://dl.bintray.com/rabbitmq/debian xenial main
key_url: https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
packages:
- libboost-dev
- libboost-chrono-dev
- libboost-system-dev
- rabbitmq-server
- ninja-build
# install pre-reqs
install:
- mkdir -p _prereqs
- pushd _prereqs
- git clone https://github.com/alanxz/rabbitmq-c
- cd rabbitmq-c
- git checkout v0.10.0
- export RABBITMQC_DIR=`pwd`/../../_install
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${RABBITMQC_DIR} -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF .
- cmake --build . --target install
- popd
before_script:
- mkdir _build
- cd _build
- pwd
# Run the Build script
script:
- cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="${FLAGS}" -DCMAKE_INSTALL_PREFIX=../_install -DENABLE_TESTING=ON -DRabbitmqc_DIR=${RABBITMQ_C_DIR} ..
- cmake --build . --target install
- AMQP_BROKER=localhost ASAN_OPTIONS=detect_leaks=1 ctest -V .