Skip to content

Commit

Permalink
Merge pull request #467 from totten/master-dr-phpu
Browse files Browse the repository at this point in the history
civi-test-run - Use phpunit5 for both Civi{Drupal,WP} suites
  • Loading branch information
totten authored Aug 21, 2019
2 parents e0ad228 + 380a7d3 commit f95e646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/civi-test-run
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
set -e
PHPUNIT=phpunit5

#################################################
## Helpers
Expand Down Expand Up @@ -105,7 +106,7 @@ function junit_cleanup() {

function task_phpunit_drupal() {
$GUARD pushd "$CIVI_CORE/drupal"
if ! $GUARD phpunit4 --tap --log-junit "$JUNITDIR/phpunit_drupal.xml" $EXCLUDE_GROUP ; then
if ! $GUARD $PHPUNIT --tap --log-junit "$JUNITDIR/phpunit_drupal.xml" $EXCLUDE_GROUP ; then
EXITCODES="$EXITCODES phpunit-drupal"
fi
echo "Found EXITCODES=\"$EXITCODES\""
Expand All @@ -116,7 +117,7 @@ function task_phpunit_drupal() {

function task_phpunit_wordpress() {
$GUARD pushd "$CIVI_CORE/.."
if ! $GUARD phpunit5 --tap --log-junit "$JUNITDIR/phpunit_wordpress.xml" $EXCLUDE_GROUP ; then
if ! $GUARD $PHPUNIT --tap --log-junit "$JUNITDIR/phpunit_wordpress.xml" $EXCLUDE_GROUP ; then
EXITCODES="$EXITCODES phpunit-wordpress"
fi
echo "Found EXITCODES=\"$EXITCODES\""
Expand Down

0 comments on commit f95e646

Please sign in to comment.