-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from LionsAd/phpunit-core
Add new phpunit-core runner for Drupal 8.
- Loading branch information
Showing
7 changed files
with
47 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# Simple script to install drupal for travis-ci running. | ||
|
||
set -e $DRUPAL_TI_DEBUG | ||
|
||
# Ensure the right Drupal version is installed. | ||
drupal_ti_ensure_drupal | ||
|
||
# Ensure the module is linked into the code base and enabled. | ||
drupal_ti_ensure_module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
# Simple script to install dependencies for travis-ci running. | ||
|
||
set -e $DRUPAL_TI_DEBUG | ||
|
||
# Ensure that drush is installed. | ||
drupal_ti_ensure_drush |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
# @file | ||
# Simple script to run the core phpunit tests via travis-ci. | ||
|
||
cd "$DRUPAL_TI_DRUPAL_DIR" | ||
|
||
# Find absolute path to modules directory. | ||
MODULE_DIR=$(cd "$DRUPAL_TI_MODULES_PATH"; pwd) | ||
|
||
ARGS=( $DRUPAL_TI_PHPUNIT_ARGS ) | ||
|
||
# Run core tests | ||
cd core | ||
./vendor/bin/phpunit "${ARGS[@]}" "$MODULE_DIR/$DRUPAL_TI_MODULE_NAME/$DRUPAL_TI_PHPUNIT_CORE_SRC_DIRECTORY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters