Skip to content

Commit

Permalink
chore(deps) bump OpenResty compat + Luarocks and Serf bump in Travis (K…
Browse files Browse the repository at this point in the history
…ong#1883)

* chore(deps) add OpenResty 1.11.2.2 to supported versions

* chore(ci) bump Luarocks and Serf Travis-CI versions

* chore(deps) disable luajit-lua52 compat in OpenResty
  • Loading branch information
thibaultcha authored Dec 19, 2016
1 parent c894076 commit 27dd297
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
23 changes: 15 additions & 8 deletions .ci/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,22 @@ if [ ! "$(ls -A $OPENSSL_INSTALL)" ]; then
fi

if [ ! "$(ls -A $OPENRESTY_INSTALL)" ]; then
OPENRESTY_OPTS=(
"--prefix=$OPENRESTY_INSTALL"
"--with-openssl=$OPENSSL_DOWNLOAD"
"--with-ipv6"
"--with-pcre-jit"
"--with-http_ssl_module"
"--with-http_realip_module"
"--with-http_stub_status_module"
)

if [ "$OPENRESTY" != "1.11.2.1" ]; then
OPENRESTY_OPTS[${#OPENRESTY_OPTS[@]}]="--without-luajit-lua52"
fi

pushd $OPENRESTY_DOWNLOAD
./configure \
--prefix=$OPENRESTY_INSTALL \
--with-openssl=$OPENSSL_DOWNLOAD \
--with-ipv6 \
--with-pcre-jit \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_stub_status_module
./configure ${OPENRESTY_OPTS[*]}
make
make install
popd
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ addons:

env:
global:
- SERF=0.7.0
- LUAROCKS=2.4.0
- SERF=0.8.0
- LUAROCKS=2.4.2
- OPENSSL=1.0.2j
- CASSANDRA=2.2.8
- OPENRESTY_BASE=1.11.2.1
- OPENRESTY_LATEST=1.11.2.1
- OPENRESTY_LATEST=1.11.2.2
- OPENRESTY=$OPENRESTY_BASE
- DOWNLOAD_CACHE=$HOME/download-cache
- INSTALL_CACHE=$HOME/install-cache
Expand Down
2 changes: 1 addition & 1 deletion kong/meta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ return {
-- third-party dependencies' required version, as they would be specified
-- to lua-version's `set()` in the form {from, to}
_DEPENDENCIES = {
nginx = {"1.11.2.1"},
nginx = {"1.11.2.1", "1.11.2.2"},
serf = {"0.7.0", "0.8.0"},
--resty = {}, -- not version dependent for now
}
Expand Down
4 changes: 2 additions & 2 deletions spec/01-unit/01-rockspec_meta_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ describe("rockspec/meta", function()
end)
it("has a _DEPENDENCIES field", function()
assert.is_table(meta._DEPENDENCIES)
assert.equal(1, #meta._DEPENDENCIES.nginx)
assert.equal(2, #meta._DEPENDENCIES.serf)
assert.is_table(meta._DEPENDENCIES.nginx)
assert.is_table(meta._DEPENDENCIES.serf)
end)
end)

Expand Down

0 comments on commit 27dd297

Please sign in to comment.