-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (44 loc) · 1.57 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
language: php
php:
- 5.3
- 5.4
- 5.5
before_script:
- git clone git://github.com/cakephp/cakephp ../cakephp
- cd ..
- cp -R cakephp-preguntafrecuente cakephp/app/Plugin/PreguntaFrecuente
- 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/PreguntaFrecuente/Config/Schema/schema.sql"
- echo "CakePlugin::load( 'PreguntaFrecuente' ); " >> 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
- cp cakephp/app/Plugin/PreguntaFrecuente/composer.json composer.json
- cp cakephp/app/Plugin/PreguntaFrecuente/.coveralls.yml .coveralls.yml
- composer install --dev
- mkdir -p build/logs
script:
- ./cakephp/app/Console/cake test PreguntaFrecuente AllTests --stderr --coverage-clover build/logs/clover-plugin.xml
after_script:
- ls -1
- cd cakephp-preguntafrecuente/
- php ../vendor/bin/coveralls -v