Skip to content

Commit

Permalink
Merge pull request #42 from lombartec/sifo3-beta
Browse files Browse the repository at this point in the history
Sifo 3 beta PHPUnit and Travis-CI integration
  • Loading branch information
alombarte committed Jan 16, 2014
2 parents f4fe876 + 44199ef commit 8d935b2
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ logs/*
!logs/.gitignore
instances/*/
!instances/common
/vendor/*
composer.lock
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: php

php:
- 5.3

install:
- composer install

script: phpunit --configuration phpunit.xml.dist
27 changes: 27 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "sifophp/SIFO",
"description": "SIFO Framework 3.0",
"keywords": [],
"homepage": "https://github.com/sifophp/SIFO",
"type": "library",
"authors": [
{
"name": "Albert Lombarte",
"email": "[email protected]",
"homepage": "http://sifo.me"
},
{
"name": "SIFO PHP Contributors",
"homepage": "https://github.com/sifophp?tab=members"
}
],
"require": {
"php": ">=5.3.2",
"phpunit/phpunit": "3.7.28"
},
"autoload": {
"psr-4": {
"Sifo\\": "src/Sifo"
}
}
}
19 changes: 19 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="src/bootstrap.php"
>
<testsuites>
<testsuite name="SIFO Test Suite">
<directory>./tests/libs/Sifo/</directory>
</testsuite>
</testsuites>
</phpunit>
3 changes: 3 additions & 0 deletions src/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

require_once( __DIR__ . '/../vendor/autoload.php' );

0 comments on commit 8d935b2

Please sign in to comment.