forked from Sessa93/nginx-ssl-ja3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.61 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
50
51
52
sudo: required
dist: bionic
os: linux
language: c
compiler:
- gcc
cache:
apt: true
directories:
env:
global:
- NGINX_PREFIX=/opt/nginx
- JOBS=4
- PATH=$PATH:$NGINX_PREFIX/sbin
before_install:
- sudo apt install -qq -y software-properties-common
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe"
- sudo apt update -qq -y --fix-missing
- sudo apt install -qq -y --fix-missing cpanminus mercurial build-essential make clang valgrind libio-socket-ssl-perl
install:
- if [ ! -d /opt ]; then mkdir /opt; fi
- git clone https://github.com/nginx/nginx-tests
- hg clone http://hg.nginx.org/nginx
- git clone https://github.com/openssl/openssl
script:
- cd openssl
- git checkout OpenSSL_1_1_1 -b patched
- patch -p1 < ../patches/openssl.extensions.patch
- ./config -d
- make -j$JOBS 2>&1 > build.log || (cat build.log && exit 1)
- sudo make install 2>&1 > build.log || (cat build.log && exit 1)
- cd ../nginx
- patch -p1 < ../patches/nginx.latest.patch
- auto/configure --with-debug --with-stream --with-ld-opt="-Wl,-E -L /usr/local/lib" --prefix=$NGINX_PREFIX --with-http_ssl_module --with-stream_ssl_module --add-module=.. > build.log 2>&1 || (cat build.log && exit 1)
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
- sudo make install > build.log 2>&1 || (cat build.log && exit 1)
- export PATH=$NGINX_PREFIX/sbin:$PATH
- export LD_LIBRARY_PATH=/usr/local/lib
- /opt/nginx/sbin/nginx -V
- ldd /opt/nginx/sbin/nginx
- cd ../t
- ln -sf ../nginx-tests/lib/ lib
- cd ..
- TEST_NGINX_BINARY=/opt/nginx/sbin/nginx prove -v