Skip to content
This repository
Browse code

Added support for Travis CI

  • Loading branch information...
commit 04e3beddf55f8d994e28bfbc62033cc86b911cf4 1 parent ec89832
Sam Minnée authored August 14, 2012
9  .travis.yml
... ...
@@ -0,0 +1,9 @@
  1
+language: php 
  2
+php: 
  3
+ - 5.3
  4
+
  5
+before_script:
  6
+ - ./tests/travis/before_script ~/builds/ss 
  7
+
  8
+script: 
  9
+ - phpunit
14  tests/travis/_ss_environment.php
... ...
@@ -0,0 +1,14 @@
  1
+<?php 
  2
+ob_start();
  3
+
  4
+define('SS_ENVIRONMENT_TYPE', 'dev');
  5
+
  6
+/* Database connection */ 
  7
+define('SS_DATABASE_SERVER', 'localhost'); 
  8
+define('SS_DATABASE_USERNAME', 'root'); 
  9
+define('SS_DATABASE_PASSWORD', '');
  10
+define('SS_DATABASE_CHOOSE_NAME', true);
  11
+
  12
+/* Configure a default username and password to access the CMS on all sites in this environment. */ 
  13
+define('SS_DEFAULT_ADMIN_USERNAME', 'username'); 
  14
+define('SS_DEFAULT_ADMIN_PASSWORD', 'password');
7  tests/travis/before_script
... ...
@@ -0,0 +1,7 @@
  1
+BUILD_DIR=$1
  2
+git clone git://github.com/silverstripe/silverstripe-installer.git $BUILD_DIR
  3
+cp ./tests/travis/_ss_environment.php $BUILD_DIR
  4
+cp -r . $BUILD_DIR/framework
  5
+
  6
+cd $BUILD_DIR
  7
+./framework/sake dev/build "flush=1"

0 notes on commit 04e3bed

Please sign in to comment.
Something went wrong with that request. Please try again.