blob: 7e2cb5f4136fdec17b2dffbc88b14ddb5be2de68 (
plain)
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
|
# Travis-CI Build for rabbitmq-c
# see travis-ci.org for details
# As CMake is not officially supported we use erlang VMs
language: erlang
# Settings to try
env:
- OPTIONS="-DBUILD_SHARED_LIBS=ON"
- OPTIONS="-DBUILD_SHARED_LIBS=OFF"
# Make sure CMake is installed
install:
- sudo apt-get install cmake libpopt-dev
# Run the Build script
script:
- mkdir _build
- cd _build
- cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_EXAMPLES=ON -DBUILD_TESTS=ON -DBUILD_TOOLS=ON -DBUILD_TOOLS_DOCS=ON $OPTIONS
- cmake --build . --target install
# Run Tests
after_script:
- ctest -V .
|