Skip to content

Error handling #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@ unit-coverage:

ci-coverage: init
composer ci-coverage

mutation:
composer mutation
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ Currently the only provided locator is the `ContainerLocator` which accepts a
return resolve($response);
})->then(function (ResponseInterface $response) use ($runner) {
return $runner->post($response);
})->otherwise(function (Throwable $throwable) use ($runner) {
return reject($runner->error($throwable));
});
```

Expand Down
10 changes: 7 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ environment:
- dependencies: highest
php_ver_target: 7.1

## Cache composer bits
## Cache composer, chocolatey and php bits
cache:
- '%LOCALAPPDATA%\Composer\files -> composer.lock'
- composer.phar
- C:\ProgramData\chocolatey\bin -> .appveyor.yml
- C:\ProgramData\chocolatey\lib -> .appveyor.yml
- c:\tools\php -> .appveyor.yml

## Set up environment varriables
init:
Expand All @@ -33,7 +37,7 @@ init:
## Install PHP and composer, and run the appropriate composer command
install:
- IF EXIST c:\tools\php (SET PHP=0)
- ps: appveyor-retry cinst -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $Env:php_ver_target | Select-Object -first 1) -replace '[php|]','')
- ps: appveyor-retry cinst --params '""/InstallDir:C:\tools\php""' --ignore-checksums -y php --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php_ver_target | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
- cd c:\tools\php
- IF %PHP%==1 copy php.ini-production php.ini /Y
- IF %PHP%==1 echo date.timezone="UTC" >> php.ini
Expand All @@ -52,4 +56,4 @@ install:
## Run the actual test
test_script:
- cd c:\projects\php-project-workspace
- vendor/bin/phpunit -c phpunit.xml.dist
- vendor/bin/phpunit -c phpunit.xml.dist
12 changes: 3 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"react/promise": "^2.4"
},
"require-dev": {
"api-clients/test-utilities": "^1.0",
"api-clients/test-utilities": "^3.0",
"container-interop/container-interop": "^1.1",
"guzzlehttp/psr7": "^1.3"
},
Expand Down Expand Up @@ -54,25 +54,19 @@
"@ensure-installed",
"phpunit --colors=always -c phpunit.xml.dist --coverage-text --coverage-html covHtml --coverage-clover ./build/logs/clover.xml"
],
"mutation": [
"@ensure-installed",
"if [ `php -m | grep xdebug | wc -l` -gt 0 ]; then humbug --ansi --incremental; fi"
],
"lint-php": [
"@ensure-installed",
"parallel-lint --exclude vendor ."
],
"qa-all": [
"@lint-php",
"@cs",
"@unit",
"@mutation"
"@unit"
],
"qa-all-coverage": [
"@lint-php",
"@cs",
"@unit-coverage",
"@mutation"
"@unit-coverage"
],
"qa-windows": [
"@lint-php",
Expand Down
Loading