forked from alanxz/SimpleAmqpClient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (46 loc) · 1.62 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
compiler:
- gcc
- clang
services: rabbitmq
env:
global:
- secure: "Fbs306tCqDrDZTEwTE4ZvQ9Jb1BRbGNMgdkDy4G+EY02tuuxHFOh0Dm9N5ylVEzOcMZUpYLogh5HDpXtvVB71hmkphfDodqdinNAmalsWzg/lOx4x414/WMyo6/vT7X+qxHmLpt/XuLVSSBP7u96hg3+/3QOhQ/x2cBMI4eAMqg="
addons:
coverity_scan:
project:
name: "alanxz/SimpleAmqpClient"
description: "Simple C++ Interface to rabbitmq-c"
notification_email: alan.antonuk@gmail.com
build_command_prepend: cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=ON -DRabbitmqc_DIR=${RABBITMQC_DIR} ..
build_command: cmake --build .
branch_pattern: coverity_scan
# install pre-reqs
install:
- sudo apt-get update
- sudo apt-get install libboost1.48-dev libboost-chrono1.48-dev libboost-system1.48-dev
- mkdir -p _prereqs
- pushd _prereqs
- git clone https://github.com/alanxz/rabbitmq-c
- cd rabbitmq-c
- git checkout v0.8.0
- export RABBITMQC_DIR=`pwd`/../../_install
- cmake -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:
- if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=../_install -DENABLE_TESTING=ON -DRabbitmqc_DIR=${RABBITMQ_C_DIR} .. &&
cmake --build . --target install ;
fi
after_script:
- if [ ${COVERITY_SCAN_BRANCH} != 1 ]; then
LD_LIBRARY_PATH=../_install/lib AMQP_BROKER=localhost ctest -V . ;
fi