chore(ci): include 7.4 and nightly

* chore(ci): Added 7.4 (just released) and nightly (as an allowed failure).
* chore(composer): Swap out abandoned coveralls package for maintained version.
* chore(composer): Added PHPUnit as a dev dependency.
* chore(ci): Dropped a ton of the juggling in favor of version juggling in Composer.
* fix(readme): Corrected the badge for the license.
* chore(composer): Bumped the package's version number.
This commit is contained in:
Josh Sherman 2019-10-19 15:14:23 -05:00
parent e97edee508
commit 0f45ca781a
3 changed files with 12 additions and 17 deletions

View file

@ -14,33 +14,27 @@ matrix:
dist: trusty dist: trusty
- php: 7.0 - php: 7.0
dist: xenial dist: xenial
env: PHPUNIT=5.7
- php: 7.1 - php: 7.1
env: PHPUNIT=7.5
- php: 7.2 - php: 7.2
- php: 7.3 - php: 7.3
- php: 7.4
env: COVERAGE=true env: COVERAGE=true
- php: nightly
allow_failures:
- php: nightly
install: install:
- php --version
- composer install - composer install
- |
if [[ $PHPUNIT ]]; then
composer require "phpunit/phpunit:$PHPUNIT"
fi
before_script: before_script:
- mkdir -p build/logs - mkdir -p build/logs
script: script:
- | - vendor/bin/phpunit --coverage-clover build/logs/clover.xml
if [[ $PHPUNIT ]]; then
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
else
phpunit --coverage-clover build/logs/clover.xml
fi
after_success: after_success:
- | - |
if [[ $COVERAGE ]]; then if [[ $COVERAGE ]]; then
php vendor/bin/coveralls --config .coveralls.yml -v travis_retry php vendor/bin/php-coveralls --config .coveralls.yml -v
fi fi

View file

@ -1,6 +1,6 @@
# Holiday API PHP Library # Holiday API PHP Library
[![License](https://img.shields.io/npm/l/holidayapi-php?style=for-the-badge)](https://github.com/holidayapi/holidayapi-php/blob/master/LICENSE) [![License](https://img.shields.io/packagist/l/holidayapi/holidayapi-php?style=for-the-badge)](https://github.com/holidayapi/holidayapi-php/blob/master/LICENSE)
![PHP Version](https://img.shields.io/packagist/php-v/holidayapi/holidayapi-php?style=for-the-badge) ![PHP Version](https://img.shields.io/packagist/php-v/holidayapi/holidayapi-php?style=for-the-badge)
![Build Status](https://img.shields.io/travis/holidayapi/holidayapi-php/master?style=for-the-badge) ![Build Status](https://img.shields.io/travis/holidayapi/holidayapi-php/master?style=for-the-badge)
[![Coverage Status](https://img.shields.io/coveralls/github/holidayapi/holidayapi-php/master?style=for-the-badge)](https://coveralls.io/github/holidayapi/holidayapi-php?branch=master) [![Coverage Status](https://img.shields.io/coveralls/github/holidayapi/holidayapi-php/master?style=for-the-badge)](https://coveralls.io/github/holidayapi/holidayapi-php?branch=master)

View file

@ -1,7 +1,7 @@
{ {
"name": "holidayapi/holidayapi-php", "name": "holidayapi/holidayapi-php",
"description": "Official PHP library for Holiday API", "description": "Official PHP library for Holiday API",
"version": "2.0.0", "version": "2.1.0",
"type": "library", "type": "library",
"keywords": [ "keywords": [
"calendar", "calendar",
@ -17,10 +17,11 @@
"homepage": "https://holidayapi.com" "homepage": "https://holidayapi.com"
}], }],
"require": { "require": {
"php": ">=5.3.0" "php": ">=5.3"
}, },
"require-dev": { "require-dev": {
"satooshi/php-coveralls": "~1.0" "php-coveralls/php-coveralls": ">=1",
"phpunit/phpunit": ">=4"
}, },
"autoload": { "autoload": {
"psr-4": { "HolidayAPI\\": "src/" } "psr-4": { "HolidayAPI\\": "src/" }