This repository has been archived by the owner on May 3, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Create editor config & reformat .travis.yml
- Loading branch information
1 parent
65d991c
commit 531f2f0
Showing
2 changed files
with
48 additions
and
43 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,5 @@ | ||
root = true | ||
|
||
[.travis.yml] | ||
indent_style = space | ||
indent_size = 4 |
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,63 +1,63 @@ | ||
language: php | ||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
|
||
env: | ||
- PHP_BIN=php | ||
- PHP_BIN=php-cgi | ||
- PHP_BIN=php | ||
- PHP_BIN=php-cgi | ||
|
||
before_script: | ||
- phpenv config-rm xdebug.ini || return 0 | ||
- travis_retry composer self-update | ||
- phpenv config-rm xdebug.ini || return 0 | ||
- travis_retry composer self-update | ||
|
||
install: | ||
- travis_retry composer install --no-interaction --no-progress --prefer-dist | ||
- travis_retry composer install --no-interaction --no-progress --prefer-dist | ||
|
||
script: | ||
- ./vendor/bin/tester -p $PHP_BIN -s -c ./tests/php.ini ./tests | ||
- ./vendor/bin/tester -p $PHP_BIN -s -c ./tests/php.ini ./tests | ||
|
||
after_failure: | ||
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done | ||
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done | ||
|
||
jobs: | ||
include: | ||
- name: Lowest Dependencies | ||
env: PHP_BIN=php | ||
php: 7.2 | ||
install: | ||
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable | ||
|
||
- stage: Code Sniffer | ||
php: 7.3 | ||
script: | ||
- vendor/bin/phpcs --standard=phpcs.xml --encoding=utf-8 -sp src/ tests/ | ||
|
||
- stage: Static Analysis | ||
php: 7.3 | ||
script: | ||
- vendor/bin/phpstan analyse -c phpstan.neon -l 7 src/ | ||
|
||
- stage: Code Coverage | ||
php: 7.3 | ||
script: | ||
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src | ||
after_script: | ||
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar | ||
- php coveralls.phar --verbose --config tests/.coveralls.yml | ||
|
||
allow_failures: | ||
- stage: Static Analysis | ||
- stage: Code Coverage | ||
- php: 7.4 | ||
include: | ||
- name: Lowest Dependencies | ||
env: PHP_BIN=php | ||
php: 7.2 | ||
install: | ||
- travis_retry composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable | ||
|
||
- stage: Code Sniffer | ||
php: 7.3 | ||
script: | ||
- vendor/bin/phpcs --standard=phpcs.xml --encoding=utf-8 -sp src/ tests/ | ||
|
||
- stage: Static Analysis | ||
php: 7.3 | ||
script: | ||
- vendor/bin/phpstan analyse -c phpstan.neon -l 7 src/ | ||
|
||
- stage: Code Coverage | ||
php: 7.3 | ||
script: | ||
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src | ||
after_script: | ||
- wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar | ||
- php coveralls.phar --verbose --config tests/.coveralls.yml | ||
|
||
allow_failures: | ||
- stage: Static Analysis | ||
- stage: Code Coverage | ||
- php: 7.4 | ||
|
||
sudo: false | ||
|
||
cache: | ||
directories: | ||
- "$HOME/.composer/cache" | ||
directories: | ||
- "$HOME/.composer/cache" | ||
|
||
notifications: | ||
email: false | ||
email: false |