-
Notifications
You must be signed in to change notification settings - Fork 10
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 & composer.json
- Loading branch information
Showing
2 changed files
with
23 additions
and
32 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,45 +1,36 @@ | ||
dist: xenial | ||
|
||
language: php | ||
|
||
php: | ||
- 7.3 | ||
|
||
cache: | ||
directories: | ||
- vendor | ||
|
||
matrix: | ||
# mark as finished before allow_failures are run | ||
fast_finish: true | ||
include: | ||
- php: 7.1 | ||
- php: 7.2 | ||
- php: 7.3 | ||
|
||
# test only master (+ pull requests) | ||
directories: | ||
- $HOME/.cache/composer | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
# make sure to update composer to latest available version | ||
before_install: | ||
- phpenv config-add travis.php.ini | ||
before_script: | ||
- echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
|
||
# install dependencies | ||
install: | ||
- travis_wait composer install | ||
# Read-only OAuth token to work around GitHub API rate limits | ||
- composer config -g github-oauth.github.com "4b3b0a83ea27d9544d3608a384c7a14625a98804" | ||
|
||
- composer update --no-suggest --prefer-dist | ||
|
||
# execute phpunit as the script command | ||
script: | ||
- ./vendor/bin/phpunit -d memory_limit=-1 --colors -c phpunit.xml --coverage-clover=coverage.xml | ||
- composer validate --strict | ||
- vendor/bin/phpunit -c phpunit.xml --coverage-clover=coverage.xml --colors=always | ||
|
||
# disable mail notifications | ||
notification: | ||
notifications: | ||
email: false | ||
|
||
# reduce depth (history) of git checkout | ||
git: | ||
depth: 30 | ||
|
||
# we don't need sudo | ||
sudo: false | ||
depth: 1 | ||
|
||
# send coverage to codecov.io | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
- if [ "$COVERAGE" != "" ] ; then bash <(curl -s https://codecov.io/bash) -F $COVERAGE ; fi |
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