From 710b94e25bfdd638b2c9dd5572f7a2c41c89244c Mon Sep 17 00:00:00 2001 From: UndefinedOffset Date: Fri, 24 Nov 2017 16:21:12 -0400 Subject: [PATCH] Attempt at moving away from silverstripe/silverstripe-travis-support --- .travis.yml | 16 ++++++++++++---- phpunit.xml.dist | 5 +++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 phpunit.xml.dist diff --git a/.travis.yml b/.travis.yml index 0b95356..9ae210d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,17 @@ matrix: env: DB=SQLITE3 CORE_RELEASE=4.0 before_script: - - git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support - - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss --require phpunit/php-file-iterator:1.3.4 - - cd ~/builds/ss + # Init PHP + - composer self-update || true + - 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: - - vendor/bin/phpunit vendor/undefinedoffset/sortablegridfield/tests \ No newline at end of file + - vendor/bin/phpunit \ No newline at end of file diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..728ef73 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,5 @@ + + + tests/ + +