forked from etr/libhttpserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (40 loc) · 1.01 KB
/
.travis.yml
File metadata and controls
40 lines (40 loc) · 1.01 KB
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
language: cpp
compiler:
- gcc
- clang
env:
- DEBUG="debug"
- DEBUG="nodebug"
before_install:
- sudo apt-get install texinfo
- sudo pip install cpp-coveralls
- sudo pip install gcovr
- sudo apt-get install libjson-perl
- sudo apt-get install libjson-xs-perl
- sudo apt-get install libfile-slurp-perl
- wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.37.tar.gz
- tar -xvzf libmicrohttpd-0.9.37.tar.gz
- cd libmicrohttpd-0.9.37
- ./configure --prefix=/usr
- make
- sudo make install
- cd ..
script:
- ./bootstrap
- mkdir build
- cd build
- if [ $DEBUG = "debug" ]; then ../configure --enable-debug; else ../configure; fi
- make
- make check
after_success:
- cp -R ../src/* ./src/
- cp -R ../src/details/* ./src/details/
- cp -R ../src/httpserver/* ./src/httpserver/
- cp -R ../test/* ./test/
- cp -R ../test/integ/* ./test/integ/
- cp -R ../test/unit/* ./test/unit/
- if [ $DEBUG = "debug" ]; then ../ci-report-coverage; fi
matrix:
exclude:
- compiler: clang
env: DEBUG="debug"