Skip to content

Commit

Permalink
Merge pull request #30 from creative-commoners/pulls/4.3/travis
Browse files Browse the repository at this point in the history
Add Travis builds for core modules
  • Loading branch information
maxime-rainville authored Oct 23, 2018
2 parents 8094f45 + 7e40542 commit 94d30bf
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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 silverstripe/admin:1.3.x-dev silverstripe/versioned:1.3.x-dev mikey179/vfsStream:^1.6
- 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-core
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## SilverStripe Core Recipe

[![Build Status](https://travis-ci.org/silverstripe/recipe-core.svg?branch=4)](https://travis-ci.org/silverstripe/recipe-core)

Base framework-only recipe for a SilverStripe ([http://silverstripe.org](http://silverstripe.org)) installation.
This includes the core modules:

Expand Down
7 changes: 7 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuite name="recipe-core">
<directory>vendor/silverstripe/assets/tests</directory>
<directory>vendor/silverstripe/config/tests</directory>
<directory>vendor/silverstripe/framework/tests</directory>
</testsuite>
</phpunit>

0 comments on commit 94d30bf

Please sign in to comment.