holidayapi-php/.travis.yml
Josh Sherman e97edee508 feat: include all endpoints
* Reworked interfacing to drop the versioning in the class name.
* Refactored / cleaned up existing code.
* Stuck with support for PHP 5.3+ since PHP 5.x still seems to hold majority.
* Abstracted request logic to another class for mocking.
* Added test suite and hit full code coverage.
* Updated readme, included migration guide and the full gamut of examples.
* Wired up travis-ci and coveralls for testing and coverage.
2019-10-10 00:12:13 -05:00

46 lines
805 B
YAML

language: php
dist: bionic
sudo: required
matrix:
include:
- php: 5.3
dist: precise
- php: 5.4
dist: trusty
- php: 5.5
dist: trusty
- php: 5.6
dist: trusty
- php: 7.0
dist: xenial
env: PHPUNIT=5.7
- php: 7.1
env: PHPUNIT=7.5
- php: 7.2
- php: 7.3
env: COVERAGE=true
install:
- composer install
- |
if [[ $PHPUNIT ]]; then
composer require "phpunit/phpunit:$PHPUNIT"
fi
before_script:
- mkdir -p build/logs
script:
- |
if [[ $PHPUNIT ]]; then
vendor/bin/phpunit --coverage-clover build/logs/clover.xml
else
phpunit --coverage-clover build/logs/clover.xml
fi
after_success:
- |
if [[ $COVERAGE ]]; then
php vendor/bin/coveralls --config .coveralls.yml -v
fi