-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update travis config, test php 8 versions, fix php 8/8.1 errors (#13)
* Update travis config, test php 8 versions * Update the way php is defined, put in place structure to allow testing laravel 9 * Forgot to remove matrix * Fix up travis config, esp envs global vs jobs * Just add a comment for future reference * Fix sorting for php 8 * Use bionic for php 8.1 * After looking at the test, we want the highest limit * Try 8.1.0 based on suggestions on travisci forums * Try and cast nulls to string for php 8.1 compact * Drop 8.1 for now (too many fixes)
- Loading branch information
1 parent
0aed272
commit ac4de98
Showing
4 changed files
with
19 additions
and
16 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,33 +1,36 @@ | ||
# Test any changes here to see the impact - https://config.travis-ci.com/explore | ||
dist: bionic | ||
language: php | ||
|
||
sudo: false | ||
dist: trusty | ||
php: | ||
- 7.4 | ||
- 8.0 | ||
|
||
env: | ||
global: | ||
- setup=basic | ||
- xdebug=true | ||
- xdebug=false | ||
jobs: | ||
- LARAVEL_VERSION=8.* | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
matrix: | ||
include: | ||
- php: 7.4 | ||
env: xdebug=false | ||
# - php: 8.0 | ||
# env: xdebug=false | ||
# - php: 8.1 | ||
# env: xdebug=false | ||
|
||
before_install: | ||
- if [[ $xdebug = 'true' ]] ; then phpenv config-rm xdebug.ini; fi | ||
- composer self-update --2 | ||
|
||
install: | ||
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction --no-suggest; fi | ||
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable; fi | ||
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable --prefer-lowest; fi | ||
|
||
before_script: | ||
- travis_retry composer install --prefer-source --no-interaction | ||
- if [ "$LARAVEL_VERSION" != "" ]; then composer require --dev "illuminate/routing:${LARAVEL_VERSION}" --no-update; fi; | ||
- if [ "$LARAVEL_VERSION" != "" ]; then composer require --dev "illuminate/support:${LARAVEL_VERSION}" --no-update; fi; | ||
- composer update | ||
|
||
script: | ||
- vendor/bin/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
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