forked from daedric/httpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (41 loc) · 1.79 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
language:
- cpp
compiler:
- clang
- gcc
sudo: required
dist: trusty
env:
global:
- secure: "aniUHYHxhL+P0wddpW5zkZE5NEPD+BKwb7FN2TojQ4q2dZ6U3bJwsm/iyhrj+/d6gtde8pWUuRLEQ9aGf2Zoxn7uahjgPCnFGskGtOV+vpDlvWl4wXioEYdom+ztHd2MDCeA2mFjRCo923IWEbLmMnx6lSlyNLcmVi+CHU/Hm0o="
matrix:
- BUILD_EXAMPLES="ON" BUILD_TESTS="ON" CMAKE_BUILD_TYPE="Release" HTTPP_PARSER_BACKEND=Ragel
- BUILD_EXAMPLES="ON" BUILD_TESTS="ON" CMAKE_BUILD_TYPE="Release" HTTPP_PARSER_BACKEND=Stream
- BUILD_EXAMPLES="ON" BUILD_TESTS="ON" CMAKE_BUILD_TYPE="Debug" HTTPP_PARSER_BACKEND=Ragel
- BUILD_EXAMPLES="ON" BUILD_TESTS="ON" CMAKE_BUILD_TYPE="Debug" HTTPP_PARSER_BACKEND=Stream
before_install:
- git submodule update --init --recursive
install:
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- sudo apt-get install -y clang-3.6 g++-4.9 libboost-all-dev libssl-dev libtbb-dev cmake
before_script:
# update compilers
- if [ "${CXX}" == "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
- if [ "${CXX}" == "clang++" ]; then export CXX="clang++-3.6" CC="clang-3.6"; fi
script:
- rm -rf build
- mkdir -p build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DBUILD_TESTS=${BUILD_TESTS} -DBUILD_EXAMPLES=${BUILD_EXAMPLES} -DHTTPP_PARSER_BACKEND=${HTTPP_PARSER_BACKEND} ..
- make VERBOSE=1
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then make test || cat Testing/Temporary/LastTest.log ; fi
#addons:
# coverity_scan:
# project:
# name: "daedric/httpp"
# description: "Micro HTTP server/client"
# notification_email: [email protected]
# build_command_prepend: "make cmake"
# build_command: "make -C build"
# branch_pattern: master