1
1
language : c
2
2
compiler : gcc
3
3
sudo : false
4
+ env :
5
+ NGHTTP2_VERSION=1.24.0
6
+ CURL_VERSION=7.49.0
7
+ CURL_DIR=curl-${CURL_VERSION}
4
8
addons :
5
9
apt :
6
10
packages :
@@ -16,21 +20,48 @@ addons:
16
20
- zzuf
17
21
- socat
18
22
install :
19
- - if [ $TRAVIS_OS_NAME = linux ]; then
20
- curl -L https://github.com/nghttp2/nghttp2/releases/download/v1.24.0/nghttp2-1.24.0.tar.gz |
21
- tar xzf - &&
22
- (cd nghttp2-1.24.0 && CXX="g++-4.8" ./configure --prefix=/usr --enable-lib-only && make && sudo make install);
23
- fi
23
+ - |
24
+ cd ~/build/ &&
25
+ curl -L https://github.com/nghttp2/nghttp2/releases/download/v${NGHTTP2_VERSION}/nghttp2-${NGHTTP2_VERSION}.tar.gz |
26
+ tar xzf - &&
27
+ cd nghttp2-${NGHTTP2_VERSION} &&
28
+ CXX="g++-4.8" ./configure --prefix=/usr --enable-lib-only &&
29
+ make && sudo make install
30
+ - |
31
+ cd ~/build/ &&
32
+ curl -L https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz |
33
+ tar xzf - &&
34
+ cd ${CURL_DIR} &&
35
+ CXX="g++-4.8" ./configure --prefix=/usr --with-nghttp2 --without-ssl --with-gnutls &&
36
+ make && sudo make install
37
+ - cd ~/build/maru/libmicrohttpd-http2/
24
38
before_script :
25
39
- autoreconf -fi
26
40
script :
27
- - ./configure --enable-https --enable-http2 --with-nghttp2
28
- - echo '#undef HAVE_INET6' >> MHD_config.h
29
- - make
30
- - make check
31
- - sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
32
- - ./configure --enable-https
33
- - make
34
- - make check
41
+ - export LD_LIBRARY_PATH=/usr/lib
42
+ - |
43
+ echo '
44
+ #include <curl/curl.h>
45
+ #include <stdio.h>
46
+
47
+ int
48
+ main (int argc, char *const *argv)
49
+ {
50
+ curl_version_info_data *curlverd = curl_version_info (CURLVERSION_NOW);
51
+ printf("curlverd->version %s\n", curlverd->version);
52
+ return 0;
53
+ }
54
+ ' | gcc -I/usr/include -L/usr/lib -xc - -lcurl && ./a.out && rm a.out
55
+ - |
56
+ ./configure --prefix=/usr --enable-https --disable-doc --enable-silent-rules --enable-asserts &&
57
+ echo '#undef HAVE_INET6' >> MHD_config.h &&
58
+ make && make check
59
+ - |
60
+ ./configure --prefix=/usr --enable-https --enable-http2 --with-nghttp2 --disable-doc --disable-silent-rules --enable-asserts &&
61
+ echo '#undef HAVE_INET6' >> MHD_config.h &&
62
+ make && make check
35
63
after_failure :
36
64
- cat src/microhttpd/test-suite.log
65
+ - cat ./src/testcurl/test-suite.log
66
+ - cat ./src/testcurl/https/test-suite.log
67
+ - cat ./src/testzzuf/test-suite.log
0 commit comments