Skip to content

Commit

Permalink
Add v2
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstanley01 committed Dec 13, 2018
1 parent 1c7bc0a commit a1f941f
Show file tree
Hide file tree
Showing 319 changed files with 18,565 additions and 7,191 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
/README.md export-ignore
/tests export-ignore
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
.php_cs.cache
phpunit.xml
composer.lock
coverage
vendor
.idea/
build/
.idea
./examples/_credentials.php
build
.DS_Store
16 changes: 16 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests');

return PhpCsFixer\Config::create()
->setFinder($finder)
->setRules([
'@Symfony' => true,
'declare_strict_types' => true,
'ordered_imports' => true,
'no_unused_imports' => true,
'array_syntax' => ['syntax' => 'short'],
'yoda_style' => false,
]);
50 changes: 3 additions & 47 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,12 @@
language: php

addons:
code_climate:
repo_token: $CODECLIMATE_REPO_TOKEN

cache:
directories:
- vendor
- $HOME/.composer/cache

env:
global:
- TASK_TESTS_COVERAGE=0

matrix:
fast_finish: true
include:
- php: 7.0

- php: 7.1

- php: 7.2

install:
# show versions and env information
- php --version
- composer --version
- pg_config --version

# disable xdebug for performance reasons when code coverage is not needed.
- |
if [[ $TASK_TESTS_COVERAGE != 1 ]]; then
phpenv config-rm xdebug.ini || echo "xdebug is not installed"
fi
# Install dependencies
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --dev

before_script:
# Enable code coverage
- |
if [ $TASK_TESTS_COVERAGE == 1 ]; then
PHPUNIT_FLAGS="--coverage-clover=$TRAVIS_BUILD_DIR/build/logs/clover.xml"
fi
- composer self-update
- composer install --prefer-source --no-interaction --dev

script:
- vendor/bin/phpunit --verbose $PHPUNIT_FLAGS

after_script:
- |
if [ $TASK_TESTS_COVERAGE == 1 ]; then
vendor/bin/test-reporter --stdout > codeclimate.json
curl -X POST -d @codeclimate.json -H 'Content-Type: application/json' -H 'User-Agent: Code Climate (PHP Test Reporter v0.1.1)' https://codeclimate.com/test_reports
fi
- composer test
10 changes: 5 additions & 5 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
MIT License
The MIT License

Copyright (c) 2017 Help Scout

Expand All @@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Loading

0 comments on commit a1f941f

Please sign in to comment.