forked from michalochman/SilverStripeExtension
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MNT Add support for symphony 4 and switch to shared travis config (#199)
* MNT Add support for symphony 4 and switch to shared travis config * Specify DB * Update phpunit config * Don't test php 8 * Pleasing PHP8 * Use correct syntax for composer OR constraints * Doing the constraint right ... maybe Co-authored-by: Steve Boyd <[email protected]> Co-authored-by: Steve Boyd <[email protected]>
- Loading branch information
1 parent
bc581dc
commit efdd90b
Showing
4 changed files
with
16 additions
and
39 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,34 +1,10 @@ | ||
language: php | ||
version: ~> 1.0 | ||
|
||
dist: xenial | ||
import: | ||
- silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-fixed.yml | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache/files | ||
matrix: | ||
include: | ||
- php: 7.1 | ||
env: PHPUNIT_TEST=1 | ||
- php: 7.2 | ||
env: PHPUNIT_TEST=1 | ||
- php: 7.3 | ||
env: PHPUNIT_TEST=1 PHPCS_TEST=1 | ||
- php: 7.4 | ||
env: PHPUNIT_TEST=1 | ||
|
||
|
||
|
||
before_script: | ||
- export PATH=~/.composer/vendor/bin:$PATH | ||
- composer validate | ||
- composer install --prefer-dist | ||
- composer require --prefer-dist --no-update silverstripe/recipe-core:^4 | ||
- composer update | ||
- if [[ $PHPCS_TEST ]]; then composer global require squizlabs/php_codesniffer:^3 --prefer-dist --no-interaction --no-progress --no-suggest -o; fi | ||
- phpenv rehash | ||
|
||
script: | ||
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit tests/php; fi | ||
- if [[ $PHPCS_TEST ]]; then composer run-script lint; fi | ||
env: | ||
global: | ||
- COMPOSER_ROOT_VERSION="1.x-dev" | ||
- REQUIRE_RECIPE="4.x-dev" | ||
- PHPUNIT_TEST=1 |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<phpunit colors="true"> | ||
<testsuite name="Default"> | ||
<directory>tests/php</directory> | ||
</testsuite> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true"> | ||
<testsuite name="Default"> | ||
<directory>tests/php</directory> | ||
</testsuite> | ||
</phpunit> |
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