-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (45 loc) · 1.17 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
before_script:
- sh -c "mysql -e 'CREATE DATABASE trsis;'"
- mkdir app/tmp
- mkdir app/tmp/cache
- mkdir app/tmp/cache/models
- mkdir app/tmp/cache/persistent
- mkdir app/tmp/cache/views
- mkdir app/tmp/tests
- mkdir app/tmp/logs
- chmod -R 777 app/tmp
- echo "<?php
class DATABASE_CONFIG {
public \$default = array(
'datasource' => 'Database/Mysql',
'database' => 'trsis',
'host' => '0.0.0.0',
'login' => 'travis',
'prefix' => '',
'persistent' => false,
);
public \$test = array(
'datasource' => 'Database/Mysql',
'database' => 'trsis',
'host' => '0.0.0.0',
'login' => 'travis',
'persistent' => false,
'prefix' => 'test_'
);
}" > ./app/Config/database.php
- sh -c "mysql < ./app/Config/Schema/schema-gestotux.sql"
- sh -c "mysql < ./app/Config/Schema/schema.sql"
- composer install --dev
- mkdir -p build/logs
script:
- ./app/Console/cake test app AllTests --stderr --coverage-clover build/logs/clover.xml --include-path vendor/phpunit/phpunit
after_script:
- php vendor/bin/coveralls -v
notifications:
email: false