This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
-
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.
added jobs to travis added symfony/polyfill-mbstring updated phpstan/phpstan
- Loading branch information
Daniel Bannert
committed
Jun 6, 2018
1 parent
831a59c
commit 206ec14
Showing
14 changed files
with
186 additions
and
148 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
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,36 +1,56 @@ | ||
language: php | ||
|
||
dist: trusty | ||
sudo: false | ||
language: php | ||
|
||
matrix: | ||
include: | ||
- php: 7.1 | ||
env: SETUP=basic CS=true | ||
- php: 7.1 | ||
env: SETUP=basic PHPSTAN=true | ||
- php: 7.2 | ||
env: SETUP=basic SEND_COVERAGE=true PHPUNIT=true | ||
fast_finish: true | ||
env: | ||
global: | ||
- TEST="./vendor/bin/phpunit --verbose" | ||
- COMPOSER_UP="composer update --no-interaction --prefer-dist --no-progress --profile --no-suggest" | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.composer/cache/files | ||
- $HOME/.php-cs-fixer | ||
|
||
before_install: | ||
- chmod a+x ./build/travis/script.sh && chmod a+x ./build/travis/after_success.sh | ||
- stty cols 120 | ||
- mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d | ||
- chmod a+x ./build/travis/configure_php.sh | ||
- ./build/travis/configure_php.sh | ||
|
||
install: | ||
- travis_retry composer install --no-interaction --prefer-dist --no-progress --profile --no-suggest | ||
|
||
script: | ||
- ./build/travis/script.sh | ||
- composer global require hirak/prestissimo | ||
- $COMPOSER_UP | ||
|
||
after_success: | ||
- ./build/travis/after_success.sh | ||
jobs: | ||
include: | ||
- stage: Test | ||
php: 7.1 | ||
env: REMOVE_XDEBUG=true | ||
- stage: Test | ||
php: 7.2 | ||
env: REMOVE_XDEBUG=true | ||
|
||
- stage: Coding standard | ||
php: 7.2 | ||
env: REMOVE_XDEBUG=true | ||
script: | ||
- ./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run | ||
- stage: Coding standard | ||
php: 7.2 | ||
env: REMOVE_XDEBUG=false | ||
script: | ||
- ./vendor/bin/phpstan analyse -c phpstan.neon -l 7 src | ||
|
||
- stage: Coverage | ||
php: 7.2 | ||
env: REMOVE_XDEBUG=false | ||
script: | ||
- bash -xc "$TEST -c ./phpunit.xml.dist --coverage-clover=coverage.xml" | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
notifications: | ||
email: false | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/5886ad33ac123a7c06b0 | ||
email: | ||
on_success: never | ||
on_failure: change |
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,6 @@ | ||
# Build Scripts | ||
|
||
This directory contains the scripts that travis uses to build the project. | ||
|
||
Tests on the entire [`narrowspark/http-emitter`](https://github.com/narrowspark/http-emitter) repository, | ||
and then sends code coverage reports out to [Codecov](https://codecov.io/github/narrowspark/http-emitter). |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$REMOVE_XDEBUG" = true ]]; then | ||
phpenv config-rm xdebug.ini; | ||
fi | ||
|
||
echo date.timezone = Europe/Berlin >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
includes: | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
- vendor/phpstan/phpstan-phpunit/rules.neon | ||
- vendor/phpstan/phpstan-strict-rules/rules.neon | ||
|
||
parameters: | ||
ignoreErrors: | ||
autoload_directories: | ||
- %currentWorkingDirectory%/src/ |
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
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.