mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Added support for Travis CI
This commit is contained in:
parent
ec89832b93
commit
04e3beddf5
9
.travis.yml
Normal file
9
.travis.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
language: php
|
||||||
|
php:
|
||||||
|
- 5.3
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
- ./tests/travis/before_script ~/builds/ss
|
||||||
|
|
||||||
|
script:
|
||||||
|
- phpunit
|
14
tests/travis/_ss_environment.php
Normal file
14
tests/travis/_ss_environment.php
Normal 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
7
tests/travis/before_script
Executable 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"
|
Loading…
Reference in New Issue
Block a user