Skip to content

Commit

Permalink
Added support for Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sveneisenschmidt committed Oct 10, 2017
1 parent 4cf8d25 commit 6c4d917
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 7 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
language: php

php:
- 5.3
- 5.4
- 7.0
- 7.1

before_install:
- composer self-update

install:
- composer install --quiet --no-interaction --prefer-dist
- composer dumpautoload -o

script:
- vendor/bin/phpunit
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# gravatar-php

![Travis CI](https://travis-ci.org/sveneisenschmidt/gravatar-php.svg?branch=master) [![Latest Stable Version](https://poser.pugx.org/se/gravatar-php/v/stable)](https://packagist.org/packages/se/gravatar-php) [![Total Downloads](https://poser.pugx.org/se/gravatar-php/downloads)](https://packagist.org/packages/se/gravatar-php) [![Latest Unstable Version](https://poser.pugx.org/se/gravatar-php/v/unstable)](https://packagist.org/packages/se/gravatar-php) [![License](https://poser.pugx.org/se/gravatar-php/license)](https://packagist.org/packages/se/gravatar-php)

## Installation

#### Inside your composer-powered project
```bash
composer require se/gravatar-php
composer install
```

## Tests

```bash
vendor/bin/phpunit
```
17 changes: 12 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
{
"name": "se/gravatar-php",
"description": "PHP 5.3 Library for Gravatar (gravatar.com)",
"description": "PHP library for generating Gravatar urls (gravatar.com)",
"keywords": ["gravatar"],
"homepage": "https://github.com/sveneisenschmidt/gravatar-php",
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Sven Eisenschmidt",
"email": "[email protected]"
}
{
"name": "Sven Eisenschmidt",
"email": "[email protected]"
},
{
"name": "Michael Heap",
"email": "[email protected]"
}
],
"autoload": {
"psr-0": {
"Gravatar": "src"
}
},
"require": {
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8",
"twig/twig": "^2.4"
Expand Down

0 comments on commit 6c4d917

Please sign in to comment.