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 #5 from detailnet/tweak/php7
Tweak/php7
- Loading branch information
Showing
78 changed files
with
1,486 additions
and
1,934 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
src_dir: src | ||
service_name: travis-ci | ||
coverage_clover: build/clover.xml | ||
json_path: build/coveralls-upload.json |
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,23 +1,32 @@ | ||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
env: | ||
global: | ||
- COMPOSER_ARGS="--no-interaction" | ||
- COVERAGE_DEPS="php-coveralls/php-coveralls" | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
include: | ||
- php: 7.2 | ||
env: | ||
- CS_CHECK=true | ||
- MD_CHECK=true | ||
- TEST_COVERAGE=true | ||
- php: 7.3 | ||
|
||
before_script: | ||
- composer self-update | ||
- composer install --dev --prefer-source --no-interaction | ||
before_install: | ||
# - if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi | ||
- cp phpunit.xml.dist phpunit.xml | ||
|
||
install: | ||
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi | ||
- stty cols 120 && composer show | ||
|
||
script: | ||
- php vendor/bin/phpunit -c travis.phpunit.xml | ||
- php vendor/bin/phpmd src xml build/config/phpmd.xml --reportfile build/logs/pmd.xml | ||
- php vendor/bin/phpcs --report=checkstyle --report-file=build/logs/checkstyle.xml --standard=build/config/phpcs.xml -v ./src/ ./tests/ | ||
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi | ||
- if [[ $MD_CHECK == 'true' ]]; then composer md-check ; fi | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage-clover ; else composer test ; fi | ||
|
||
after_script: | ||
- php vendor/bin/coveralls | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi |
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,8 +1,6 @@ | ||
# blitline | ||
# Blitline API client | ||
|
||
[![Build Status](https://travis-ci.org/detailnet/blitline.svg?branch=master)](https://travis-ci.org/detailnet/blitline) | ||
[![Coverage Status](https://img.shields.io/coveralls/detailnet/blitline.svg)](https://coveralls.io/r/detailnet/blitline) | ||
[![Latest Stable Version](https://poser.pugx.org/detailnet/blitline/v/stable.svg)](https://packagist.org/packages/detailnet/blitline) | ||
[![Latest Unstable Version](https://poser.pugx.org/detailnet/blitline/v/unstable.svg)](https://packagist.org/packages/detailnet/blitline) | ||
|
||
Blitline API client. http://www.blitline.com |
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,5 +1,2 @@ | ||
* | ||
!config | ||
!config/* | ||
!logs | ||
!.gitignore |
This file was deleted.
Oops, something went wrong.
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,7 +1,7 @@ | ||
<?php | ||
|
||
return array( | ||
return [ | ||
'application_id' => 'your-blitline-application-id', | ||
's3bucket' => 'your-bucket-name', | ||
's3prefix' => 'test-files', // Or any other path under your bucket | ||
); | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="DETAIL NET PHPCS rule set"> | ||
<description>The coding standard for a DETAIL NET PHP application</description> | ||
|
||
<!-- Include the whole PSR-2 standard --> | ||
<rule ref="PSR2"/> | ||
<rule ref="Generic.Files.LineLength"> | ||
<properties> | ||
<property name="lineLimit" value="140"/> | ||
<property name="absoluteLineLimit" value="0"/> | ||
</properties> | ||
</rule> | ||
|
||
<!-- Paths to check --> | ||
<file>examples</file> | ||
<file>src</file> | ||
<file>tests</file> | ||
</ruleset> |
File renamed without changes.
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,15 @@ | ||
<phpunit | ||
bootstrap="./tests/bootstrap.php" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
verbose="true" | ||
stopOnFailure="false" | ||
processIsolation="false" | ||
backupGlobals="false" | ||
syntaxCheck="true" | ||
> | ||
<phpunit bootstrap="./vendor/autoload.php" colors="true"> | ||
<testsuite name="Detail\Blitline Test Suite"> | ||
<directory>./tests/DetailTest/Blitline</directory> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
|
||
<filter> | ||
<whitelist> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./src</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<logging> | ||
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/> | ||
<log type="coverage-html" target="./build/coverage" title="Detail\Blitline" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70"/> | ||
<log type="coverage-clover" target="./build/logs/clover.xml"/> | ||
<log type="junit" target="./build/logs/junit.xml" logIncompleteSkipped="false"/> | ||
</logging> | ||
<!--<logging>--> | ||
<!--<log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>--> | ||
<!--</logging>--> | ||
</phpunit> |
Oops, something went wrong.