Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

! Add possibility to run phpunit from vendor directory

  • Loading branch information...
commit 80cc27386889820f490c31c14a3f10d2b0870777 1 parent 7174513
@IvanChepurnyi IvanChepurnyi authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 bin/mage-ci
View
6 bin/mage-ci
@@ -93,9 +93,15 @@ run_phpunit ()
if [ -e "$current_dir/vendor/bin/phpunit" ]
then
phpunit_bin="$current_dir/vendor/bin/phpunit"
+ elif [ -e "$current_dir/bin/phpunit" ]
+ then
+ phpunit_bin="$current_dir/bin/phpunit"
fi
+
+
local phpunit_version=$($phpunit_bin --version)
+ echo "${MAGECIF[2]}PHPUnit binary: $phpunit_bin\nVersion $phpunit_version${MAGECIF[0]}";
# Check existance of phpunit at the system
if [ $? -ne 0 ]
Please sign in to comment.
Something went wrong with that request. Please try again.