Added support for Travis CI

This commit is contained in:
Sam Minnee 2012-08-14 16:02:12 +12:00
parent ec89832b93
commit 04e3beddf5
3 changed files with 30 additions and 0 deletions

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
language: php
php:
- 5.3
before_script:
- ./tests/travis/before_script ~/builds/ss
script:
- phpunit

View File

@ -0,0 +1,14 @@
<?php
ob_start();
define('SS_ENVIRONMENT_TYPE', 'dev');
/* Database connection */
define('SS_DATABASE_SERVER', 'localhost');
define('SS_DATABASE_USERNAME', 'root');
define('SS_DATABASE_PASSWORD', '');
define('SS_DATABASE_CHOOSE_NAME', true);
/* Configure a default username and password to access the CMS on all sites in this environment. */
define('SS_DEFAULT_ADMIN_USERNAME', 'username');
define('SS_DEFAULT_ADMIN_PASSWORD', 'password');

7
tests/travis/before_script Executable file
View File

@ -0,0 +1,7 @@
BUILD_DIR=$1
git clone git://github.com/silverstripe/silverstripe-installer.git $BUILD_DIR
cp ./tests/travis/_ss_environment.php $BUILD_DIR
cp -r . $BUILD_DIR/framework
cd $BUILD_DIR
./framework/sake dev/build "flush=1"