Skip to content

Commit

Permalink
Added composer.json and automatic testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolesen committed Apr 3, 2016
1 parent 2f47b3d commit 3e5041f
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
composer.lock
composer.phar
vendor
15 changes: 15 additions & 0 deletions .travis.yml
@@ -0,0 +1,15 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6

install:
- composer self-update
- composer install

script:

- php bucket.test.php
4 changes: 2 additions & 2 deletions bucket.test.php
@@ -1,8 +1,8 @@
<?php
require_once 'simpletest/unit_tester.php';
require_once 'vendor/simpletest/simpletest/unit_tester.php';
if (realpath($_SERVER['PHP_SELF']) == __FILE__) {
error_reporting(E_ALL | E_STRICT);
require_once 'simpletest/autorun.php';
require_once 'vendor/simpletest/simpletest/autorun.php';
}

require_once 'lib/bucket.inc.php';
Expand Down
30 changes: 30 additions & 0 deletions composer.json
@@ -0,0 +1,30 @@
{
"name": "troelskn/bucket",
"type": "library",
"description": "Bucket is a very minimal, yet useful di-container for PHP.",
"keywords": [
"di-container",
"dependency injection"
],
"homepage": "https://github.com/troelskn/bucket",
"license": "BSD-4-Clause",
"authors": [
{
"name": "Troels Knak-Nielsen",
"email": "troelskn@gmail.com",
"homepage": "http://troelskn.com/",
"role": "Developer"
}
],
"require": {
"php": ">=5.0.0"
},
"autoload": {
"files": [
"lib/bucket.inc.php"
]
},
"require-dev": {
"simpletest/simpletest": ">=1.1"
}
}

0 comments on commit 3e5041f

Please sign in to comment.