This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
54 lines (49 loc) · 1.56 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
language: php
php:
- 5.3
- 5.4
- 5.5
env:
- DB=mysql
before_script:
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'CREATE DATABASE cakephp_test;'; fi"
- sh createTempDirectory.sh
- chmod -R 777 ./app/tmp
- cp app/Config/core.php.default app/Config/core.php
- cp app/Config/config.php.default app/Config/config.php
- touch app/webroot/js/stammtisch/data.js
- chmod 777 app/webroot/js/stammtisch/data.js
- echo "<?php
class DATABASE_CONFIG {
public \$default = array(
'datasource' => 'Database/Mysql',
'host' => '127.0.0.1',
'login' => 'root',
'persistent' => false,
'password' => '',
'database' => 'cakephp_test',
'prefix' => ''
);
public \$test = array(
'datasource' => 'Database/Mysql',
'host' => '127.0.0.1',
'login' => 'root',
'persistent' => false,
'password' => '',
'database' => 'cakephp_test',
'prefix' => ''
);
}" > app/Config/database.php
- sh app/Console/cake autoschema create GeoCoordinates
- sh app/Console/cake autoschema create WikiPages
- sh app/Console/cake autoschema create WikiElements
- sh app/Console/cake autoschema create Stammtisches
script:
- ./app/Console/cake testsuite app Model/GeoCoordinate
- ./app/Console/cake testsuite app Model/WikiPage
- ./app/Console/cake testsuite app Model/WikiElement
- ./app/Console/cake testsuite app Model/Stammtisch
- ./app/Console/cake testsuite app Controller/AppController
- ./app/Console/cake testsuite app Controller/StammtischController
#notifications:
# email: false