Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for Travis CI

  • Loading branch information...
commit 04e3beddf55f8d994e28bfbc62033cc86b911cf4 1 parent ec89832
@sminnee sminnee authored
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"
Please sign in to comment.
Something went wrong with that request. Please try again.