forked from etr/libhttpserver
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
34 lines (34 loc) · 913 Bytes
/
.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
language: cpp
compiler:
- gcc
- clang
env:
- DEBUG="debug"
- DEBUG="nodebug"
- LINKING="static"
before_install:
- sudo apt-get install info install-info
- sudo pip install cpp-coveralls
- sudo pip install gcovr
- wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.52.tar.gz
- tar -xvzf libmicrohttpd-0.9.52.tar.gz
- cd libmicrohttpd-0.9.52
- ./configure --prefix=/usr
- make
- sudo make install
- cd ..
script:
- ./bootstrap
- mkdir build
- cd build
- if [ $LINKING = "static" ]; then ../configure --enable-static --disable-fastopen; elif [ $DEBUG = "debug" ]; then ../configure --enable-debug --disable-shared --disable-fastopen; else ../configure --disable-fastopen; fi
- make
- make check
after_success:
- if [ $DEBUG = "debug" ]; then ../ci-report-coverage; fi
matrix:
exclude:
- compiler: clang
env: DEBUG="debug"
- compiler: clang
env: LINKING='static'