33 lines
755 B
YAML
33 lines
755 B
YAML
language: php
|
|
|
|
php:
|
|
- 5.3
|
|
- 5.4
|
|
|
|
env:
|
|
- CAKE_VERSION=master
|
|
- CAKE_VERSION=2.5
|
|
|
|
before_script:
|
|
- sh -c "mysql -e 'CREATE DATABASE cakephp_test;'"
|
|
- git clone git://github.com/cakephp/cakephp ../cakephp && cd ../cakephp && git checkout $CAKE_VERSION
|
|
- cp -R ../cakephp-plugin-boost_cake plugins/BoostCake
|
|
- chmod -R 777 ../cakephp/app/tmp
|
|
- echo "<?php
|
|
class DATABASE_CONFIG {
|
|
public \$test = array(
|
|
'datasource' => 'Database/Mysql',
|
|
'database' => 'cakephp_test',
|
|
'host' => '0.0.0.0',
|
|
'login' => 'travis'
|
|
'host' => '',
|
|
'persistent' => false,
|
|
);
|
|
}" > ../cakephp/app/Config/database.php
|
|
|
|
script:
|
|
- ./lib/Cake/Console/cake test BoostCake AllTests --stderr
|
|
|
|
notifications:
|
|
email: false
|