File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 24
24
global :
25
25
- JOBS=2
26
26
- OPENRESTY_PREFIX=/usr/local/openresty
27
- - OPENRESTY_VER=`curl -s "https://api.github.com/repos/openresty/openresty/tags" | grep '"name"' | head -1 | grep -Po '([\d\.]+)'`
28
27
29
28
install :
30
- - if [ ! -f download-cache/openresty-$OPENRESTY_VER.tar.gz ]; then
31
- wget -P download-cache https://openresty.org/download/openresty-$OPENRESTY_VER.tar.gz;
32
- fi
33
29
- git clone https://github.com/openresty/test-nginx.git test-nginx
34
30
- sudo luarocks install lua-resty-http
35
31
- sudo luarocks install lua-typeof
32
+ - wget -qO - https://openresty.org/package/pubkey.gpg | sudo apt-key add -
33
+ - sudo apt-get -y install software-properties-common
34
+ - sudo add-apt-repository -y "deb http://openresty.org/package/ubuntu $(lsb_release -sc) main"
35
+ - sudo apt-get update
36
+ - sudo apt-get install openresty
36
37
37
38
script :
38
39
- cd test-nginx && (sudo cpanm . > build.log 2>&1 || (cat build.log && exit 1)) && cd ..
39
- - tar xzf download-cache/openresty-$OPENRESTY_VER.tar.gz &&
40
- cd openresty-$OPENRESTY_VER
41
- - ./configure --prefix=$OPENRESTY_PREFIX -j$JOBS
42
- > build.log 2>&1 || (cat build.log && exit 1)
43
- - make -j$JOBS > build.log 2>&1 ||
44
- (cat build.log && exit 1)
45
- - sudo make install > build.log 2>&1 ||
46
- (cat build.log && exit 1)
47
- - cd ..
48
40
- export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH
49
41
- sudo service etcd start
50
42
- make test jobs=$JOBS
You can’t perform that action at this time.
0 commit comments