-
Notifications
You must be signed in to change notification settings - Fork 16
/
.travis.yml
57 lines (53 loc) · 1.64 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: php
php:
- 5.5
- 5.6
env:
- DB=mysql CAKEPHP=2.3.10
- DB=mysql CAKEPHP=2.4.10
- DB=mysql CAKEPHP=2.5.8
- DB=mysql CAKEPHP=2.6.7
- DB=mysql CAKEPHP=2.10.14
- DB=mysql CAKEPHP=2.10.15
- DB=mysql CAKEPHP=2.10.16
before_script:
- composer install --dev
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
- wget https://github.com/cakephp/cakephp/tarball/$CAKEPHP -O cake.tar.gz
- tar xf cake.tar.gz
- mv cakephp-cakephp-* ./cakephp
- chmod -R 777 ./cakephp/app/tmp
- echo "<?php
App::build(array(
'Plugin' => array('/home/travis/build/fusic/'),
));
ini_set('include_path', ROOT . '/../vendor/phpunit/phpunit' . PATH_SEPARATOR . ini_get('include_path'));
CakePlugin::loadAll();
" > cakephp/app/Config/bootstrap.php
- echo "<?php
class DATABASE_CONFIG {
public \$default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => '0.0.0.0',
'login' => 'root',
'password' => '',
'database' => 'cakephp_test',
'prefix' => ''
);
public \$test = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => '0.0.0.0',
'login' => 'root',
'password' => '',
'database' => 'cakephp_test',
'prefix' => '',
'encoding' => 'utf8'
);
}" > cakephp/app/Config/database.php
- cd ./cakephp
script:
- ./lib/Cake/Console/cake test Filebinder Model/Behavior/BindableBehavior --stderr
- ./lib/Cake/Console/cake test Filebinder Controller/Component/RingComponent --stderr
- ./lib/Cake/Console/cake test Filebinder View/Helper/LabelHelper --stderr