Merge pull request #6045 from sminnee/fix-pr-builds

FIX: Make PR builds work.
This commit is contained in:
Ingo Schommer 2016-09-21 13:22:09 +12:00 committed by GitHub
commit 183b3915d3
2 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,7 @@ before_script:
- phpenv config-rm xdebug.ini
- "export DISPLAY=\":99\""
- "export XVFBARGS=\":99 -ac -screen 0 1024x768x16\""
- "export COMPOSER_ROOT_VERSION=4.0.x-dev"
- "if [ \"$na\" = \"\" ]; then composer install --prefer-dist; fi"
- "if [ \"$DB\" = \"PGSQL\" ]; then composer require silverstripe/postgresql:2.0.x-dev --prefer-dist; fi"
- "if [ \"$DB\" = \"SQLITE\" ]; then composer require silverstripe/sqlite3:2.0.x-dev --prefer-dist; fi"

View File

@ -3,6 +3,13 @@
use SilverStripe\ORM\DB;
use SilverStripe\Dev\SapphireTest;
if(!defined('BASE_PATH')) {
echo "BASE_PATH hasn't been defined. This probably means that framework/Core/Constants.php hasn't been " .
"included by Composer's autoloader.\n" .
"Make sure the you are running your tests via vendor/bin/phpunit and your autoloader is up to date.\n";
exit(1);
}
/**
* This bootstraps the SilverStripe system so that phpunit can be run directly on SilverStripe tests.