File tree Expand file tree Collapse file tree 1 file changed +37
-19
lines changed
Expand file tree Collapse file tree 1 file changed +37
-19
lines changed Original file line number Diff line number Diff line change 1- sudo : required
2- dist : trusty
3-
41os : linux
2+ dist : xenial
53
6- language : c
7-
8- compiler :
9- - gcc
10- - clang
4+ sudo : required
115
126addons :
137 apt :
148 packages :
15- - luarocks
16- - jq
17-
9+ - cpanminus
10+ - build-essential
11+ - libncurses5-dev
12+ - libpcre3-dev
13+ - libreadline-dev
14+ - libssl-dev
15+ - perl
16+ - etcd
17+ - luarocks
18+ - cmake
19+ - lua-check
1820
1921env :
20- matrix :
21- - NGINX_VERSION=1.9.15
22- - NGINX_VERSION=1.11.2
22+ global :
23+ - OPENRESTY_PREFIX=/usr/local/openresty-debug
2324
2425before_install :
25- - jq . conf/orange.conf.example >> /dev/null || exit 1
26- - sudo luarocks install luacheck
27- - luacheck -q .
28- - ' ! grep -n -P '' (?<=.{80}).+'' --color `find . -name '' *.lua'' ` || (echo "ERROR: Found Lua source lines exceeding 80 columns." > /dev/stderr; exit 1)'
29- - ' ! grep -n -P '' \t+'' --color `find . -name '' *.lua'' ` || (echo "ERROR: Cannot use tabs." > /dev/stderr; exit 1)'
26+ - sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)
27+
28+ install :
29+ - wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
30+ - sudo apt-get -y install software-properties-common
31+ - sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
32+ - sudo apt-get update
33+ - sudo apt-get install openresty-debug
34+ - sudo opm --install-dir=./ get zhangbao0325/orangelib
35+ - sudo luarocks install luafilesystem
36+ - sudo luarocks install luasocket
37+ - sudo cd cd conf
38+ - sudo cp orange.conf.example orange.conf
39+ - sudo cp nginx.conf.example nginx.conf
40+ - git clone https://github.com/openresty/test-nginx.git test-nginx
41+
42+ script :
43+ - sudo service etcd start
44+ - sudo orange start
45+ - export PATH=$OPENRESTY_PREFIX/nginx/sbin:$OPENRESTY_PREFIX/luajit/bin:$PATH
46+ - make check || exit 1
47+ - prove -Itest-nginx/lib -r t
You can’t perform that action at this time.
0 commit comments