fix TRAVIS unbound var error
This commit is contained in:
@@ -67,7 +67,7 @@ export CXX11=true
|
||||
|
||||
if [ ${UNAME} = 'Darwin' ]; then
|
||||
|
||||
if [[ $TRAVIS ]]; then
|
||||
if [[ -n ${TRAVIS:-} ]]; then
|
||||
if aws s3 cp s3://mapbox-gl-testing/dependencies/build-cpp11-libcpp-osx_${MP_HASH}_${DIR_HASH}.tar.gz ./out/ ; then
|
||||
if aws s3 cp s3://mapbox-gl-testing/dependencies/build-cpp11-libcpp-ios_${MP_HASH}_${DIR_HASH}.tar.gz ./out/ ; then
|
||||
rm -rf out/build-cpp11-libcpp-x86_64-macosx
|
||||
@@ -130,7 +130,7 @@ source MacOSX.sh
|
||||
patch -p0 --forward < patches/curl-ios.diff || true
|
||||
echo "NOTE: One patch FAILURE is expected. The other should have been applied or ignored."
|
||||
|
||||
if [[ $TRAVIS && $AWS_ACCESS_KEY_ID && $AWS_SECRET_ACCESS_KEY ]] ; then
|
||||
if [[ -n ${TRAVIS:-} && ${AWS_ACCESS_KEY_ID} && ${AWS_SECRET_ACCESS_KEY} ]] ; then
|
||||
tar -zcf out/build-cpp11-libcpp-ios_${MP_HASH}_${DIR_HASH}.tar.gz out/build-cpp11-libcpp-universal
|
||||
aws s3 cp --acl public-read out/build-cpp11-libcpp-ios_${MP_HASH}_${DIR_HASH}.tar.gz s3://mapbox-gl-testing/dependencies/
|
||||
tar -zcf out/build-cpp11-libcpp-osx_${MP_HASH}_${DIR_HASH}.tar.gz out/build-cpp11-libcpp-x86_64-macosx
|
||||
@@ -146,7 +146,7 @@ cd ../../
|
||||
|
||||
elif [ ${UNAME} = 'Linux' ]; then
|
||||
|
||||
if [[ $TRAVIS ]]; then
|
||||
if [[ -n ${TRAVIS:-} ]]; then
|
||||
if aws s3 cp s3://mapbox-gl-testing/dependencies/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz ./out/ ; then
|
||||
rm -rf out/build-cpp11-libstdcpp-gcc-x86_64-linux
|
||||
tar -xzf out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz
|
||||
@@ -162,7 +162,7 @@ source Linux.sh
|
||||
if [ ! -f out/build-cpp11-libstdcpp-gcc-x86_64-linux/lib/libcurl.a ] ; then ./scripts/build_curl.sh ; fi
|
||||
if [ ! -f out/build-cpp11-libstdcpp-gcc-x86_64-linux/lib/libboost_regex.a ] ; then ./scripts/build_boost.sh --with-regex ; fi
|
||||
|
||||
if [[ $TRAVIS && $AWS_ACCESS_KEY_ID && $AWS_SECRET_ACCESS_KEY ]] ; then
|
||||
if [[ -n ${TRAVIS:-} && ${AWS_ACCESS_KEY_ID} && ${AWS_SECRET_ACCESS_KEY} ]] ; then
|
||||
if ! tar --compare -zf out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz ; then
|
||||
tar -zcf out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz out/build-cpp11-libstdcpp-gcc-x86_64-linux
|
||||
aws s3 cp --acl public-read out/build-cpp11-libstdcpp-gcc-x86_64-linux.tar.gz s3://mapbox-gl-testing/dependencies/
|
||||
|
||||
Reference in New Issue
Block a user