Skip to content

Commit ee6f1a7

Browse files
author
Luca Degasperi
committed
setting up Travis CI and Converalls
1 parent ff541a3 commit ee6f1a7

File tree

3 files changed

+73
-7
lines changed

3 files changed

+73
-7
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,5 @@ php:
55
- 5.4
66
- 5.5
77

8-
before_script:
9-
- curl -s http://getcomposer.org/installer | php
10-
- php composer.phar install --dev
11-
12-
script: phpunit
8+
before_script: composer install --prefer-source
9+
script: phpunit --configuration phpunit.xml.dist

composer.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "lucadegasperi/oauth2-server-laravel",
3-
"description": "A Laravel 4 wrapper for the popular OAuth2 server by php-loep",
3+
"description": "A Laravel 4 wrapper for the popular OAuth 2.0 league/oauth2-server",
44
"keywords": [
55
"laravel",
66
"oauth2",
77
"oauth",
8-
"server"
8+
"server",
9+
"api"
910
],
1011
"authors": [
1112
{
@@ -17,6 +18,17 @@
1718
"php": ">=5.3.0",
1819
"league/oauth2-server": "2.1.x"
1920
},
21+
"require-dev": {
22+
"mockery/mockery": ">=0.7.2",
23+
"league/phpunit-coverage-listener": "~1.0",
24+
"whatthejeff/nyancat-phpunit-resultprinter": "~1.1"
25+
},
26+
"repositories": [
27+
{
28+
"type": "git",
29+
"url": "https://github.com/lucadegasperi/oauth2-server-laravel.git"
30+
}
31+
],
2032
"autoload": {
2133
"classmap": [
2234
"src/migrations"

phpunit.xml.dist

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
>
13+
<testsuites>
14+
<testsuite name="Package Test Suite">
15+
<directory suffix=".php">./tests/</directory>
16+
</testsuite>
17+
</testsuites>
18+
<filter>
19+
<blacklist>
20+
<directory suffix=".php">PEAR_INSTALL_DIR</directory>
21+
<directory suffix=".php">PHP_LIBDIR</directory>
22+
<directory suffix=".php">vendor</directory>
23+
<directory suffix=".php">tests</directory>
24+
<directory suffix=".php">testing</directory>
25+
</blacklist>
26+
</filter>
27+
<logging>
28+
<log type="coverage-clover" target="/tmp/coverage.xml"/>
29+
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
30+
</logging>
31+
<listeners>
32+
<listener class="League\PHPUnitCoverageListener\Listener">
33+
<arguments>
34+
<array>
35+
<element key="printer">
36+
<object class="League\PHPUnitCoverageListener\Printer\StdOut"/>
37+
</element>
38+
<element key="hook">
39+
<object class="League\PHPUnitCoverageListener\Hook\Travis"/>
40+
</element>
41+
<element key="namespace">
42+
<string>LucaDegasperi\OAuth2Server</string>
43+
</element>
44+
<element key="repo_token">
45+
<string>C3CHnRnyaPen5icheG7CYU1O4EDO9aHfu</string>
46+
</element>
47+
<element key="target_url">
48+
<string>https://coveralls.io/api/v1/jobs</string>
49+
</element>
50+
<element key="coverage_dir">
51+
<string>/tmp</string>
52+
</element>
53+
</array>
54+
</arguments>
55+
</listener>
56+
</listeners>
57+
</phpunit>

0 commit comments

Comments
 (0)