Skip to content

Commit

Permalink
Merge pull request #4 from gillesbourgeat/test
Browse files Browse the repository at this point in the history
Add travis
  • Loading branch information
gillesbourgeat committed Nov 5, 2015
2 parents 691bf09 + 76aaaca commit ae5c7b0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: php

php:
- 5.4
- 5.5
- 5.6
- hhvm
- nightly

matrix:
allow_failures:
- php: nightly

before_script:
- composer self-update
- composer install --dev

script: phpunit
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Maths tools

This library includes some tools for math operations.

[![Build Status](https://travis-ci.org/thelia/math-tools.png?branch=master)](https://travis-ci.org/thelia/math-tools) [![License](https://poser.pugx.org/thelia/math-tools/license.png)](https://packagist.org/packages/thelia/math-tools) [![Scrutinizer Quality Score](https://scrutinizer-ci.com/g/thelia/math-tools/badges/quality-score.png?s=61e3e04a69bffd71c29b08e5392080317a546716)](https://scrutinizer-ci.com/g/thelia/math-tools/)

Number
---

Expand All @@ -27,4 +29,4 @@ echo GCD::getGCD(10,5); // 5
echo GCD::getGCD(10,10); // 10
echo GCD::getGCD(20,10); // 10
echo GCD::getGCD(11,10); // 1
```
```
17 changes: 17 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./tests/bootstrap.php"
colors="true">
<testsuites>
<testsuite>
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src</directory>
<exclude>
<directory suffix="Interface.php">src/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>

0 comments on commit ae5c7b0

Please sign in to comment.