Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the system integration tests installer & runner.

  • Loading branch information...
commit 99af7742340381c8b462e1ceb05e8868ed7a1346 1 parent 0cd4c74
@fgiasson fgiasson authored
Showing with 39 additions and 11 deletions.
  1. +39 −11 system-integration-tests.sh
View
50 system-integration-tests.sh
@@ -32,16 +32,6 @@ cecho () # Color-echo.
return
}
-echo -e "\n\n"
-cecho "--------------------"
-cecho " Installing PHPUnit "
-cecho "--------------------"
-echo -e "\n\n"
-
-cecho "\n\nInstall PHPUnit...\n"
-
-sudo apt-get install -y phpunit
-
# Check where is installed structwsf
STRUCTWSFFOLDER="/usr/share/structwsf/"
@@ -55,6 +45,44 @@ read NEWSTRUCTWSFFOLDER
STRUCTWSFFOLDER=$(echo "${STRUCTWSFFOLDER}" | sed -e "s/\/*$//")
+STRUCTWSFPHPAPIDOWNLOADURL="https://github.com/structureddynamics/structWSF-PHP-API/zipball/master"
+
+echo -e "\n\n"
+cecho "----------------------------------"
+cecho " Installing the structWSF PHP API "
+cecho "----------------------------------"
+echo -e "\n\n"
+
+# Current location: /usr/share/structwsf/
+
+sudo wget $STRUCTWSFPHPAPIDOWNLOADURL
+
+cecho "\n\n9.3) Decompressing structWSF PHP API...\n"
+
+sudo unzip "master"
+
+cd `ls -d structureddynamics*/`
+
+cd "StructuredDynamics/structwsf/"
+
+sudo cp -a php $STRUCTWSFFOLDER"/StructuredDynamics/structwsf/"
+
+cd ../../
+
+sudo rm -rf `ls -d structureddynamics*/`
+
+sudo rm master
+
+echo -e "\n\n"
+cecho "--------------------"
+cecho " Installing PHPUnit "
+cecho "--------------------"
+echo -e "\n\n"
+
+cecho "\n\nInstall PHPUnit...\n"
+
+sudo apt-get install -y phpunit
+
# Download the tests suites, and move them into the structwsf folder.
sudo mkdir tests
@@ -90,7 +118,7 @@ read NEWDOMAINNAME
cecho "\n\nConfigure tests...\n"
-sudo sed -i "s>REPLACEME>"$INSTALLDIR">" phpunit.xml
+sudo sed -i "s>REPLACEME>"$STRUCTWSFFOLDER"/StructuredDynamics/structwsf>" phpunit.xml
sudo sed -i "s>$this-\>structwsfInstanceFolder = \"/usr/share/structwsf/\";>$this-\>structwsfInstanceFolder = \""$STRUCTWSFFOLDER"/\";>" Config.php
Please sign in to comment.
Something went wrong with that request. Please try again.