-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Extending documentation * Re-order badges * Chasing 100% code coverage * Updated description and keywords * Added travis-ci config * Finishing documentation for 1.0.0 release * Lowercase config * Users can now publish the packages configuration to their project * Remove lock file
- Loading branch information
1 parent
d9797b8
commit 70df686
Showing
9 changed files
with
109 additions
and
3,545 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
language: php | ||
|
||
sudo: false | ||
|
||
matrix: | ||
include: | ||
- php: 7.0 | ||
- php: 7.1 | ||
- php: nightly | ||
allow_failures: | ||
- php: nightly | ||
fast_finish: true | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_install: | ||
- source .travis/travis.sh | ||
- xdebug-disable | ||
- travis_retry composer self-update | ||
|
||
install: | ||
- travis_retry composer install --no-interaction --prefer-dist --no-suggest; | ||
|
||
script: | ||
- run-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
|
||
# The problem is that we do not want to remove the configuration file, just disable it for a few tasks, then enable it | ||
# | ||
# For reference, see | ||
# | ||
# - https://docs.travis-ci.com/user/languages/php#Disabling-preinstalled-PHP-extensions | ||
# - https://docs.travis-ci.com/user/languages/php#Custom-PHP-configuration | ||
# | ||
# Original Source (this was copied from): | ||
# - https://github.com/codeclimate/php-test-reporter/blob/master/.travis/travis.sh | ||
|
||
config="/home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini" | ||
|
||
function xdebug-disable() { | ||
if [[ -f $config ]]; then | ||
mv $config "$config.bak" | ||
fi | ||
} | ||
|
||
function xdebug-enable() { | ||
if [[ -f "$config.bak" ]]; then | ||
mv "$config.bak" $config | ||
fi | ||
} | ||
|
||
function run-tests() { | ||
if [[ "$WITH_COVERAGE" == "true" ]]; then | ||
xdebug-enable | ||
vendor/bin/phpunit --coverage-clover=$TRAVIS_BUILD_DIR/build/logs/clover.xml | ||
xdebug-disable | ||
else | ||
vendor/bin/phpunit | ||
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
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
Oops, something went wrong.