-
Notifications
You must be signed in to change notification settings - Fork 53
/
.travis.yml
executable file
·40 lines (36 loc) · 1023 Bytes
/
.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
language: php
php:
- 5.4
before_script:
- sh -c "mysql -e 'CREATE DATABASE jslate;'"
- sh -c "mysql -e 'CREATE DATABASE jslate_test;'"
- chmod -R 777 ./app/tmp
- sudo apt-get install lighttpd
- phpenv rehash
- set +H
- echo "<?php
class DATABASE_CONFIG {
public \$default = array(
'persistent' => false,
'datasource' => 'Database/Mysql',
'host' => '0.0.0.0',
'login' => 'travis',
'password' => '',
'database' => 'jslate',
'prefix' => ''
);
public \$test = array(
'persistent' => false,
'datasource' => 'Database/Mysql',
'host' => '0.0.0.0',
'login' => 'travis',
'password' => '',
'database' => 'jslate_test',
'prefix' => ''
);
}" > app/Config/database.php
- sh -c "./app/Console/cake migrate"
script:
- sh -c "./lib/Cake/Console/cake test app AllTests --stderr"
notifications:
email: false