diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2216c02 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,32 @@ +language: php + +env: + global: + - COMPOSER_ROOT_VERSION=4.3.x-dev + +matrix: + include: + - php: 5.6 + env: DB=MYSQL + - php: 7.0 + env: DB=PGSQL + - php: 7.1 + env: DB=MYSQL + - php: 7.2 + env: DB=MYSQL + +before_script: + - phpenv rehash + - phpenv config-rm xdebug.ini + + - composer validate + - composer require --no-update silverstripe-themes/simple:~3.2.0 + - if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.1.x-dev --no-update; fi + - composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile + + # Validate cow schema + - composer global require silverstripe/cow ^2 + - ~/.config/composer/vendor/bin/cow schema:validate + +script: + - vendor/bin/phpunit --testsuite recipe-cms diff --git a/README.md b/README.md index 5fb6cfa..628cc23 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ## SilverStripe CMS Recipe +[![Build Status](https://travis-ci.org/silverstripe/recipe-cms.svg?branch=4)](https://travis-ci.org/silverstripe/recipe-cms) + Base page and asset content-editing recipe for a SilverStripe ([http://silverstripe.org](http://silverstripe.org)) installation. This includes the modules: diff --git a/composer.json b/composer.json index 49000ec..2dd8c47 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "silverstripe/versioned": "1.4.x-dev" }, "require-dev": { - "phpunit/PHPUnit": "^5.7" + "phpunit/phpunit": "^5.7" }, "extra": { "project-files": [ diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..241582a --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,14 @@ + + + vendor/silverstripe/admin/tests + vendor/silverstripe/asset-admin/tests + vendor/silverstripe/campaign-admin/tests + vendor/silverstripe/cms/tests + vendor/silverstripe/errorpage/tests + vendor/silverstripe/graphql/tests + vendor/silverstripe/reports/tests + vendor/silverstripe/siteconfig/tests + vendor/silverstripe/versioned/tests + vendor/silverstripe/versioned-admin/tests + +