From 4daad54ae2a656c14043c9855441dd206105e499 Mon Sep 17 00:00:00 2001 From: Nathan Gibbs Date: Sun, 2 Apr 2023 16:09:19 +0000 Subject: [PATCH] 20230402 Fix CI build breakage. Related Issue(s) #158 #159 #162 #163 --- tests/php/iauth_AuthorizedxTest.php | 1 + tests/phpunit.sh | 3 +++ tests/setupenv.sh | 7 +++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/php/iauth_AuthorizedxTest.php b/tests/php/iauth_AuthorizedxTest.php index 2931121..81fc5fa 100644 --- a/tests/php/iauth_AuthorizedxTest.php +++ b/tests/php/iauth_AuthorizedxTest.php @@ -246,6 +246,7 @@ public function testAuthorizedURISetOK(){ if ( ( $version[0] == 5 && $version[1] == 3 ) || ( $version[0] == 7 && $version[1] == 2 ) + || ( $version[0] == 7 && $version[1] == 3 ) ){ // Composer Installed PHPUnit $tmp = 'vendor'; }else{ // System PHPUnit diff --git a/tests/phpunit.sh b/tests/phpunit.sh index 63be0a7..5bdfa32 100755 --- a/tests/phpunit.sh +++ b/tests/phpunit.sh @@ -50,6 +50,9 @@ else elif [ "$PHVM" == "7" ] && [ "$PHVm" == "2" ]; then # Issue #154 pi=Composer px="$ph vendor/bin/$pu" + elif [ "$PHVM" == "7" ] && [ "$PHVm" == "3" ]; then # Issue #159 + pi=Composer + px="$ph vendor/bin/$pu" else pi=System px=$pu diff --git a/tests/setupenv.sh b/tests/setupenv.sh index ad44e44..9defab2 100755 --- a/tests/setupenv.sh +++ b/tests/setupenv.sh @@ -203,7 +203,7 @@ elif [ "$pvM" \> "5" ]; then # PHP 7x fi elif [ "$pvM" \> "4" ]; then # PHP 5x if [ "$pvm" \> "2" ]; then # PHP 5.3+ - ADODBVer=5.20.8 + ADODBVer=5.20.9 else ADODBVer=5.01beta fi @@ -254,13 +254,16 @@ else # Branch Mode echo -n "branch $GHBranch" ADOFile=$GHBranch ADODl=tarball - ADODBPATH=ADOdb-ADOdb-* fi echo " from: https://$ADOSrc" if [ "$1" == "" ] && [ "$TRAVIS" == "true" ]; then + echo "Creating Build ADOdb Directory: `pwd`/build/adodb" mkdir -p build/adodb wget -nv https://$ADOSrc/$ADODl/$ADOFile -O build/adodb.tgz tar -C build/adodb -zxf build/adodb.tgz + if [ "$GHMode" == "branch" ]; then + ADODBPATH=`ls build/adodb` + fi export ADODBPATH=$ADODBPATH RFADODBPATH="build/adodb/$ADODBPATH" else