-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from alexz707/Travis-Fix
Fixing tests, added gitattributes
- Loading branch information
Showing
5 changed files
with
80 additions
and
23 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,10 @@ | ||
/.coveralls.yml export-ignore | ||
/.gitattributes export-ignore | ||
/.github/ export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.php_cs export-ignore | ||
/phpcs.xml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/tests/ export-ignore |
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,29 +1,65 @@ | ||
language: php | ||
|
||
php: | ||
- 7.3 | ||
- 7.4 | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install --dev --prefer-source; | ||
env: | ||
global: | ||
- COMPOSER_ARGS="--no-interaction" | ||
|
||
services: | ||
- mysql | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- php: nightly | ||
include: | ||
- php: 7.3 | ||
env: | ||
- DEPS=lowest | ||
- php: 7.3 | ||
env: | ||
- DEPS=latest | ||
- CS_CHECK=true | ||
- TEST_COVERAGE=true | ||
- php: 7.4 | ||
env: | ||
- DEPS=lowest | ||
- php: 7.4 | ||
env: | ||
- DEPS=latest | ||
- php: nightly | ||
env: | ||
- DEPS=lowest | ||
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs" | ||
- php: nightly | ||
env: | ||
- DEPS=latest | ||
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs" | ||
|
||
before_install: | ||
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
|
||
install: | ||
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs | ||
- if [[ $LEGACY_DEPS != '' ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi | ||
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi | ||
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi | ||
- stty cols 120 && composer show | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
|
||
before_script: | ||
- mysql -e "create database IF NOT EXISTS lmc_user;" -uroot | ||
|
||
script: | ||
- ./vendor/bin/phpunit --bootstrap=tests/bootstrap.php --configuration tests/phpunit.xml | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi | ||
- ./vendor/bin/phpcs -n --standard=PSR2 ./src/ ./tests/ | ||
|
||
services: | ||
- mysql | ||
|
||
after_script: | ||
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml | ||
|
||
notifications: | ||
email: "[email protected]" | ||
|
||
|
||
|
||
matrix: | ||
fast_finish: true |
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