-
Notifications
You must be signed in to change notification settings - Fork 5
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 #21 from silverleague/feature/support-php55
Support PHP 5.5. Reduce to PHPUnit 4.8. Add roles to readme. Update Travis configuration.
- Loading branch information
Showing
9 changed files
with
33 additions
and
49 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 |
---|---|---|
@@ -1,26 +1,33 @@ | ||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
|
||
env: | ||
- DB=MYSQL CORE_RELEASE=4 | ||
- DB=PGSQL CORE_RELEASE=4 | ||
|
||
matrix: | ||
include: | ||
- php: 7.1 | ||
env: DB=MYSQL CORE_RELEASE=4 COVERAGE="--coverage-clover=coverage.xml" | ||
- php: 7.1 | ||
env: DB=PGSQL CORE_RELEASE=4 | ||
|
||
before_script: | ||
- composer self-update || true | ||
- composer install | ||
- "if [ \"$DB\" = \"PGSQL\" ]; then composer require silverstripe/postgresql:2.0.x-dev --prefer-dist; fi" | ||
- curl https://phar.phpunit.de/phpunit-5.7.5.phar > ./phpunit | ||
- chmod +x ./phpunit | ||
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support | ||
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss | ||
- cd ~/builds/ss | ||
|
||
script: | ||
- ./phpunit --coverage-clover=coverage.xml | ||
- vendor/bin/phpunit "$COVERAGE" logviewer/tests | ||
|
||
# Share coverage results with codecov.io | ||
after_success: | ||
- mv coverage.xml ~/build/$TRAVIS_REPO_SLUG | ||
- cd ~/build/$TRAVIS_REPO_SLUG | ||
- bash <(curl -s https://codecov.io/bash) | ||
- > | ||
test "$COVERAGE" != "" | ||
&& mv coverage.xml ~/build/$TRAVIS_REPO_SLUG | ||
&& cd ~/build/$TRAVIS_REPO_SLUG | ||
&& bash <(curl -s https://codecov.io/bash) |
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
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
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 |
---|---|---|
|
@@ -74,6 +74,7 @@ public function canEdit($member = null) | |
{ | ||
return false; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
|
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
This file was deleted.
Oops, something went wrong.