mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 20:17:35 +08:00
ci: add missing OPENRESTY_PREFIX env variable (#3464)
Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
parent
5399a31b24
commit
3f0c3ae5e4
@ -19,8 +19,10 @@
|
||||
. ./.travis/common.sh
|
||||
|
||||
do_install() {
|
||||
export_or_prefix
|
||||
|
||||
./utils/linux-install-openresty.sh
|
||||
OR_PREFIX=/usr/local/openresty-debug ./utils/linux-install-luarocks.sh
|
||||
./utils/linux-install-luarocks.sh
|
||||
./utils/linux-install-etcd-client.sh
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,8 @@
|
||||
. ./.travis/common.sh
|
||||
|
||||
do_install() {
|
||||
export_or_prefix
|
||||
|
||||
./utils/linux-install-openresty.sh
|
||||
./utils/linux-install-luarocks.sh
|
||||
./utils/linux-install-etcd-client.sh
|
||||
|
@ -16,12 +16,10 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
. ./apisix/.travis/common.sh
|
||||
|
||||
install_dependencies() {
|
||||
export PATH=/usr/local/openresty-debug/nginx/sbin:/usr/local/openresty-debug/bin:$PATH
|
||||
export_or_prefix
|
||||
|
||||
# install development tools
|
||||
yum install -y wget tar gcc automake autoconf libtool make unzip \
|
||||
@ -32,7 +30,7 @@ install_dependencies() {
|
||||
rpm -ivh epel-release-latest-7.noarch.rpm
|
||||
yum install -y lua-devel
|
||||
|
||||
OR_PREFIX=/usr/local/openresty-debug ./apisix/utils/linux-install-luarocks.sh
|
||||
./apisix/utils/linux-install-luarocks.sh
|
||||
|
||||
# install openresty
|
||||
yum install -y yum-utils && yum-config-manager --add-repo https://openresty.org/package/centos/openresty.repo
|
||||
@ -70,7 +68,8 @@ install_dependencies() {
|
||||
}
|
||||
|
||||
run_case() {
|
||||
export PATH=/usr/local/openresty-debug/nginx/sbin:/usr/local/openresty-debug/bin:$PATH
|
||||
export_or_prefix
|
||||
|
||||
cd apisix
|
||||
|
||||
# run test cases
|
||||
|
@ -16,8 +16,8 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
if [ -z ${OR_PREFIX} ]; then
|
||||
OR_PREFIX="/usr/local/openresty"
|
||||
if [ -z ${OPENRESTY_PREFIX} ]; then
|
||||
OPENRESTY_PREFIX="/usr/local/openresty"
|
||||
fi
|
||||
|
||||
wget https://github.com/luarocks/luarocks/archive/v3.4.0.tar.gz
|
||||
@ -30,5 +30,5 @@ cd .. || exit
|
||||
rm -rf luarocks-3.4.0
|
||||
|
||||
mkdir ~/.luarocks || true
|
||||
luarocks config variables.OPENSSL_LIBDIR ${OR_PREFIX}/openssl/lib
|
||||
luarocks config variables.OPENSSL_INCDIR ${OR_PREFIX}/openssl/include
|
||||
luarocks config variables.OPENSSL_LIBDIR ${OPENRESTY_PREFIX}/openssl/lib
|
||||
luarocks config variables.OPENSSL_INCDIR ${OPENRESTY_PREFIX}/openssl/include
|
||||
|
Loading…
Reference in New Issue
Block a user