-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from creative-commoners/pulls/4.3/travis
Add Travis builds for core modules
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |