Skip to content

Commit dbeb29f

Browse files
committed
Merge pull request #105 from kohana/3.3/feat/travis-module-build
Configure Koharness for standalone Travis build
2 parents f050f9d + 442ccfd commit dbeb29f

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
composer.lock
2+
vendor/*
3+
koharness_bootstrap.php
4+

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
- hhvm
9+
10+
before_script:
11+
- composer install --prefer-dist
12+
- vendor/bin/koharness
13+
14+
script:
15+
- cd /tmp/koharness && ./vendor/bin/phpunit --bootstrap=modules/unittest/bootstrap.php modules/unittest/tests.php
16+
17+
notifications:
18+
email: false

composer.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,19 @@
2525
"kohana/database": ">=3.3",
2626
"php": ">=5.3.3"
2727
},
28+
"require-dev": {
29+
"kohana/core": "3.3.*@dev",
30+
"kohana/database": "3.3.*@dev",
31+
"kohana/unittest": "3.3.*@dev",
32+
"kohana/koharness": "*@dev"
33+
},
2834
"extra": {
2935
"branch-alias": {
3036
"dev-3.3/develop": "3.3.x-dev",
3137
"dev-3.4/develop": "3.4.x-dev"
32-
}
38+
},
39+
"installer-paths": {
40+
"vendor/{$vendor}/{$name}": ["type:kohana-module"]
41+
}
3342
}
3443
}

koharness.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
// Configuration for koharness - builds a standalone skeleton Kohana app for running unit tests
3+
return array(
4+
'modules' => array(
5+
'orm' => __DIR__,
6+
'unittest' => __DIR__ . '/vendor/kohana/unittest'
7+
),
8+
);

0 commit comments

Comments
 (0)