Attempt at moving away from silverstripe/silverstripe-travis-support

This commit is contained in:
UndefinedOffset 2017-11-24 16:21:12 -04:00
parent 7e8cdd9c2b
commit 710b94e25b
2 changed files with 17 additions and 4 deletions

View File

@ -16,9 +16,17 @@ matrix:
env: DB=SQLITE3 CORE_RELEASE=4.0 env: DB=SQLITE3 CORE_RELEASE=4.0
before_script: before_script:
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support # Init PHP
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require phpunit/php-file-iterator:1.3.4 - composer self-update || true
- cd ~/builds/ss - phpenv rehash
- phpenv config-rm xdebug.ini
# Install composer dependencies
- composer validate
- composer require --no-update silverstripe/recipe-framework:1.0.x-dev
- if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.0.x-dev --prefer-dist; fi
- if [[ $DB == SQLITE ]]; then composer require silverstripe/sqlite3:2.1.x-dev --prefer-dist; fi
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile
script: script:
- vendor/bin/phpunit vendor/undefinedoffset/sortablegridfield/tests - vendor/bin/phpunit

5
phpunit.xml.dist Normal file
View File

@ -0,0 +1,5 @@
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuite name="Default">
<directory>tests/</directory>
</testsuite>
</phpunit>