-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove PHP 5.5 + HHVM, add PHP 7.[123]; add test matrix; add support scripts for CI in composer.json
- Loading branch information
Showing
2 changed files
with
54 additions
and
4 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,10 +1,46 @@ | ||
language: php | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
- $HOME/.composer/cache | ||
|
||
env: | ||
matrix: | ||
- DEPENDENCIES=latest | ||
- DEPENDENCIES=oldest | ||
|
||
install: | ||
- > | ||
echo; | ||
if [ "$DEPENDENCIES" = "latest" ]; then | ||
echo "Installing the latest dependencies"; | ||
composer update --with-dependencies | ||
else | ||
echo "Installing the lowest dependencies"; | ||
composer update --with-dependencies --prefer-lowest | ||
fi; | ||
composer show; | ||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
install: | ||
- travis_retry composer install --no-interaction | ||
script: | ||
- > | ||
echo; | ||
echo "Validating the composer.json"; | ||
composer validate --no-check-all --no-check-lock --strict; | ||
- > | ||
echo; | ||
echo "Linting all PHP files"; | ||
composer ci:lint; | ||
- > | ||
echo; | ||
echo "Running the PHPUnit tests"; | ||
composer ci:tests; |
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