Browse files

Added support for Travis CI

  • Loading branch information...
1 parent ec89832 commit 04e3beddf55f8d994e28bfbc62033cc86b911cf4 @sminnee sminnee committed Aug 14, 2012
Showing with 30 additions and 0 deletions.
  1. +9 −0 .travis.yml
  2. +14 −0 tests/travis/_ss_environment.php
  3. +7 −0 tests/travis/before_script
View
9 .travis.yml
@@ -0,0 +1,9 @@
+language: php
+php:
+ - 5.3
+
+before_script:
+ - ./tests/travis/before_script ~/builds/ss
+
+script:
+ - phpunit
View
14 tests/travis/_ss_environment.php
@@ -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');
View
7 tests/travis/before_script
@@ -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"

0 comments on commit 04e3bed

Please sign in to comment.