diff --git a/.travis.yml b/.travis.yml index 1d6f607..ec9a3b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,30 +1,34 @@ -# See https://github.com/silverstripe-labs/silverstripe-travis-support for setup details +language: php + +dist: precise sudo: false -language: php - php: - - 5.5 - 5.6 - 7.0 + - 7.1 env: - - DB=SQLITE CORE_RELEASE=master PDO=1 + - DB=SQLITE CORE_RELEASE=4 PDO=1 matrix: + fast_finish: true include: - php: 5.6 - env: DB=SQLITE CORE_RELEASE=master PDO=0 - allow_failures: - - php: 7.0 + env: DB=SQLITE CORE_RELEASE=4 PDO=0 before_script: - - composer self-update || true - - git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support - - php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss - - cd ~/builds/ss - - composer install + # Init PHP + - printf "\n" | pecl install imagick + - phpenv rehash + - phpenv config-rm xdebug.ini + - echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini + +# Install composer dependencies + - composer validate + - composer require symfony/config:^3.2 silverstripe/framework:4.0.x-dev silverstripe/cms:4.0.x-dev silverstripe/siteconfig:4.0.x-dev silverstripe/config:1.0.x-dev silverstripe/admin:1.0.x-dev silverstripe/assets:1.0.x-dev silverstripe/versioned:1.0.x-dev --no-update + - composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile script: - - vendor/bin/phpunit framework/tests + - vendor/bin/phpunit vendor/silverstripe/framework/tests diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..7080c7b --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,16 @@ + + + + tests + + + + + . + + tests/ + + + + + \ No newline at end of file