Skip to content

Commit

Permalink
Add travis-ci support
Browse files Browse the repository at this point in the history
  • Loading branch information
Bui Sy Nguyen committed Aug 24, 2015
1 parent 4c0f2a8 commit 39dae6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ install:
- composer install --prefer-dist --dev
- composer info --installed
before_script:
- mysql -e 'create database workflowii_test;'
- cd tests
- php ./codeception/bin/yii migrate/up --interactive=0
- ../vendor/bin/codecept build
script: ../vendor/bin/codecept run unit
- mysql -e 'create database amqp_helper_test;'
script: phpunit --configuration phpunit.xml --coverage-text
9 changes: 9 additions & 0 deletions tests/_bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
function loader($class)
{
$file = $class . '.php';
if (file_exists($file)) {
require $file;
}
}
spl_autoload_register('loader');
2 changes: 0 additions & 2 deletions tests/phpunit.xml

This file was deleted.

0 comments on commit 39dae6f

Please sign in to comment.