Skip to content
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

Enhance Travis CI build #19

Closed
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
19 changes: 7 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,19 @@ sudo: false
language: php

php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1.0alpha1
- hhvm
- 7.1
- 7.2
- 7.3
- nightly

matrix:
allow_failures:
- php: hhvm
- php: nightly

before_script:
- travis_retry composer self-update
- composer require satooshi/php-coveralls --prefer-source
- if [[ $TRAVIS_PHP_VERSION != "5.6" ]]; then phpenv config-rm xdebug.ini; fi

script:
- mkdir -p build/logs
- phpunit --coverage-clover build/logs/clover.xml

after_script:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then php vendor/bin/coveralls -v; fi;'
- if [[ $TRAVIS_PHP_VERSION == "5.6" ]]; then make test-coveralls; else make test; fi
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ echo $time->is_monday; // false
echo $time->is_saturday; // true
echo $time->is_today; // true
echo $time->tomorrow; // 2013-02-04T00:00:00+0100
echo $time->tomorrow->is_future // true
echo $time->tomorrow->is_future; // true
echo $time->yesterday; // 2013-02-02T00:00:00+0100
echo $time->yesterday->is_past // true
echo $time->yesterday->is_past; // true
echo $time->monday; // 2013-01-28T00:00:00+0100
echo $time->sunday; // 2013-02-03T00:00:00+0100

Expand Down Expand Up @@ -112,7 +112,7 @@ The implementation of the [DateTime][] class is vastly inspired by Ruby's
```php
<?php

use ICanBoogie\DateTime:
use ICanBoogie\DateTime;

$time = new DateTime('2014-01-06 11:11:11', 'utc'); // a monday at 11:11:11 UTC

Expand Down Expand Up @@ -322,7 +322,7 @@ use ICanBoogie\DateTime;

// …

$repository = new Repository($provider);
/* @var Repository $repository */

DateTime::$localizer = function(DateTime $instance, $locale) use ($repository) {

Expand Down Expand Up @@ -431,7 +431,7 @@ The package is continuously tested by [Travis CI](http://about.travis-ci.org/).
[JsonSerializable interface]: http://php.net/manual/en/class.jsonserializable.php
[documentation]: http://api.icanboogie.org/datetime/latest/
[DateTime]: http://api.icanboogie.org/datetime/latest/class-ICanBoogie.DateTime.html
[TimeZone]: http://api.icanboogie.org/datetime/latest/class-ICanBoogie.TimeZone.html)
[TimeZone]: http://api.icanboogie.org/datetime/latest/class-ICanBoogie.TimeZone.html
[TimeZoneLocation]: http://api.icanboogie.org/datetime/latest/class-ICanBoogie.TimeZoneLocation.html
[PropertyNotDefined]: http://api.icanboogie.org/common/1.2/class-ICanBoogie.PropertyNotDefined.html
[PropertyNotWritable]: http://api.icanboogie.org/common/1.2/class-ICanBoogie.PropertyNotWritable.html