Skip to content

Commit e811e1e

Browse files
committed
Added config file for travis ci
Need to fix paths in test boostrap file
1 parent 373f05c commit e811e1e

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.3.3
6+
- 5.4
7+
8+
before_script: composer install
9+
10+
script: phpunit -c tests

tests/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
error_reporting(-1);
1212
date_default_timezone_set('Europe/Berlin');
1313

14-
if (file_exists('../vendor/autoload.php'))
14+
if (file_exists(__DIR__ . '/../vendor/autoload.php'))
1515
{
16-
require_once '../vendor/autoload.php';
16+
require_once __DIR__ . '/../vendor/autoload.php';
1717
}
1818
else
1919
{
20-
require_once '../../../autoload.php';
20+
require_once __DIR__ . '/../../../autoload.php';
2121
}
2222

0 commit comments

Comments
 (0)