-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (34 loc) · 1.18 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
language: php
php:
- 5.3
before_script:
- git clone git://github.com/cakephp/cakephp ../cakephp
- cd ..
- mv cakephp-gestotux cakephp/app/Plugin/Gestotux
- chmod -R 777 cakephp/app/tmp
- sh -c "mysql -e 'CREATE DATABASE turnera;'"
- echo "<?php
class DATABASE_CONFIG {
public \$default = array(
'datasource' => 'Database/Mysql',
'database' => 'turnera',
'host' => '0.0.0.0',
'login' => 'travis',
'prefix' => '',
'persistent' => false,
);
public \$test = array(
'datasource' => 'Database/Mysql',
'database' => 'turnera',
'host' => '0.0.0.0',
'login' => 'travis',
'prefix' => '',
'persistent' => false,
);
}" > cakephp/app/Config/database.php
- sh -c "mysql < cakephp/app/Plugin/Gestotux/Config/Schema/schema.sql"
- echo "CakePlugin::load( 'Gestotux' ); " >> cakephp/app/Config/bootstrap.php
- echo "Configure::write('Security.salt', 'DYhG93b0qyJtfIxufs2gruVoUubWnwvniRe2G0FraCa9mi');" >> cakephp/app/Config/core.php
- echo "Configure::write('Security.cipherSeed', '7685923096357445354624962749683645');" >> cakephp/app/Config/core.php
script:
- ./cakephp/app/Console/cake test Gestotux AllTests --stderr