Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
26 additions
and
12 deletions.
-
+1
−0
.gitattributes
-
+11
−7
.travis.yml
-
+5
−0
README.md
-
+0
−5
composer.json
-
+9
−0
sonar-project.properties
|
@@ -9,3 +9,4 @@ |
|
|
/phive.xml export-ignore |
|
|
/phpstan.neon.dist export-ignore |
|
|
/phpunit.xml.dist export-ignore |
|
|
/sonar-project.properties export-ignore |
|
@@ -5,17 +5,21 @@ php: |
|
|
- 7.1 |
|
|
- 7.2 |
|
|
- 7.3 |
|
|
- nightly |
|
|
|
|
|
matrix: |
|
|
fast_finish: true |
|
|
allow_failures: |
|
|
- php: nightly |
|
|
|
|
|
cache: |
|
|
directories: |
|
|
- $HOME/.composer/cache |
|
|
|
|
|
addons: |
|
|
sonarcloud: |
|
|
organization: "jeromegamez-github" |
|
|
|
|
|
git: |
|
|
depth: false |
|
|
|
|
|
install: composer update --no-interaction --no-suggest --no-progress |
|
|
|
|
|
script: composer test-ci |
|
|
script: |
|
|
- vendor/bin/phpstan analyze -c phpstan.neon.dist --no-interaction --no-progress |
|
|
- vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage-report.clover --log-junit=test-report.xml |
|
|
- sonar-scanner |
|
@@ -4,7 +4,12 @@ Working with durations made easy. |
|
|
|
|
|
[](https://packagist.org/packages/gamez/duration) |
|
|
[]() |
|
|
|
|
|
[](https://travis-ci.com/jeromegamez/duration-php) |
|
|
[](https://sonarcloud.io/dashboard?id=jeromegamez_duration-php) |
|
|
[](https://sonarcloud.io/dashboard?id=jeromegamez_duration-php) |
|
|
[](https://sonarcloud.io/dashboard?id=jeromegamez_duration-php) |
|
|
[](https://sonarcloud.io/dashboard?id=jeromegamez_duration-php) |
|
|
|
|
|
Do you like to use `DateInterval` to compute and work with durations? Me neither, so let's fix that! |
|
|
|
|
|
|
@@ -29,13 +29,8 @@ |
|
|
}, |
|
|
"scripts": { |
|
|
"test": ["@phpunit", "@phpstan"], |
|
|
"test-ci": ["@phpunit-ci", "@phpstan-ci"], |
|
|
|
|
|
"coverage": "vendor/bin/phpunit --coverage-html=build/coverage", |
|
|
|
|
|
"phpunit": "vendor/bin/phpunit --testdox", |
|
|
"phpunit-ci": "vendor/bin/phpunit -c phpunit.xml.dist --testdox", |
|
|
|
|
|
"phpstan": "vendor/bin/phpstan analyze", |
|
|
"phpstan-ci": "vendor/bin/phpstan analyze -c phpstan.neon.dist --no-interaction --no-progress" |
|
|
}, |
|
|
|
|
@@ -0,0 +1,9 @@ |
|
|
sonar.projectKey=jeromegamez_duration-php |
|
|
sonar.projectName=Durations for PHP |
|
|
|
|
|
sonar.sources=src |
|
|
sonar.tests=tests |
|
|
sonar.language=php |
|
|
sonar.sourceEncoding=UTF-8 |
|
|
sonar.php.coverage.reportPaths=coverage-report.clover |
|
|
sonar.php.tests.reportPath=test-report.xml |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.