File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 13
13
name : Install dependencies
14
14
command : |
15
15
apt-get update
16
- apt-get install -y libpcre3 libpcre3-dev zlib1g-dev libssl-dev build-essential wget
16
+ apt-get install -y libpcre3 libpcre3-dev zlib1g-dev libssl-dev build-essential wget git sudo
17
+ - run :
18
+ name : Install cmake
19
+ command : |
20
+ echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections
21
+ echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections
22
+ DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
23
+ apt-get install -y cmake
17
24
- checkout
25
+
18
26
- run :
19
27
name : Build and test
20
28
command : |
@@ -27,3 +35,4 @@ workflows:
27
35
build :
28
36
jobs :
29
37
- build
38
+
Original file line number Diff line number Diff line change @@ -16,17 +16,17 @@ prepare-travis-env:
16
16
wget --no-verbose https://nginx.org/download/nginx-${NGINX_VERSION} .tar.gz
17
17
tar -xzf nginx-${NGINX_VERSION} .tar.gz
18
18
ln -s nginx-${NGINX_VERSION} ${NGX_PATH}
19
- cd ${NGX_PATH} && ./configure --with-http_ssl_module --with-cc=$(CC ) --add-module=.
19
+ cd ${NGX_PATH} && ./configure --with-http_ssl_module --with-cc=$(CC ) --add-module=/root/project
20
20
21
21
nginx :
22
22
cd ${NGX_PATH} && rm -rf ${NGX_PATH} /objs/src/core/nginx.o && make
23
23
24
24
vendor/cmocka :
25
- git submodule init && git submodule update
25
+ cd /root/project && git submodule init && git submodule update
26
26
27
- .cmocka_build : vendor/cmocka
28
- mkdir .cmocka_build && cd .cmocka_build \
29
- && cmake -DCMAKE_C_COMPILER=$(CC ) -DCMAKE_MAKE_PROGRAM=make .. /vendor/cmocka \
27
+ .cmocka_build :
28
+ cd /root/project && git submodule init && git submodule update && mkdir .cmocka_build && cd .cmocka_build \
29
+ && cmake -DCMAKE_C_COMPILER=$(CC ) -DCMAKE_MAKE_PROGRAM=make /root/project /vendor/cmocka \
30
30
&& make && sudo make install
31
31
32
32
test : .cmocka_build | nginx
You can’t perform that action at this time.
0 commit comments