Merge pull request #21 from creative-commoners/pulls/4.3/travis

Add Travis builds for CMS recipe modules
This commit is contained in:
Stevie Mayhew 2018-11-13 08:49:24 +13:00 committed by GitHub
commit 66b715c488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 50 additions and 2 deletions

32
.travis.yml Normal file
View File

@ -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

View File

@ -1,5 +1,7 @@
## SilverStripe CMS Recipe ## 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)) Base page and asset content-editing recipe for a SilverStripe ([http://silverstripe.org](http://silverstripe.org))
installation. This includes the modules: installation. This includes the modules:

View File

@ -19,7 +19,7 @@
"silverstripe/versioned": "1.3.x-dev" "silverstripe/versioned": "1.3.x-dev"
}, },
"require-dev": { "require-dev": {
"phpunit/PHPUnit": "^5.7" "phpunit/phpunit": "^5.7"
}, },
"extra": { "extra": {
"project-files": [ "project-files": [

14
phpunit.xml.dist Normal file
View File

@ -0,0 +1,14 @@
<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true">
<testsuite name="recipe-cms">
<directory>vendor/silverstripe/admin/tests</directory>
<directory>vendor/silverstripe/asset-admin/tests</directory>
<directory>vendor/silverstripe/campaign-admin/tests</directory>
<directory>vendor/silverstripe/cms/tests</directory>
<directory>vendor/silverstripe/errorpage/tests</directory>
<directory>vendor/silverstripe/graphql/tests</directory>
<directory>vendor/silverstripe/reports/tests</directory>
<directory>vendor/silverstripe/siteconfig/tests</directory>
<directory>vendor/silverstripe/versioned/tests</directory>
<directory>vendor/silverstripe/versioned-admin/tests</directory>
</testsuite>
</phpunit>