From 65793e2b3835f256719642e49ba8ea6ec4251d99 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 9 Nov 2012 13:01:29 +0100 Subject: [PATCH 1/3] Added travis support --- .travis.yml | 27 +++++++++++++++++++++++++++ tests/travis/before_script | 10 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .travis.yml create mode 100755 tests/travis/before_script diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..324f2621 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,27 @@ +language: php +php: + - 5.3 + +env: + - TESTDB=MYSQL + - TESTDB=PGSQL + +before_script: + - ./tests/travis/before_script ~/builds/ss + - cd ~/builds/ss + +script: + - php framework/cli-script.php dev/tests/module/cms + +branches: + except: + - 2.1 + - 2.2 + - 2.3 + - post-2.4 + - translation-staging + +notifications: + irc: + channels: + - "irc.freenode.org#silverstripe" \ No newline at end of file diff --git a/tests/travis/before_script b/tests/travis/before_script new file mode 100755 index 00000000..ac9a6f0c --- /dev/null +++ b/tests/travis/before_script @@ -0,0 +1,10 @@ +BUILD_DIR=$1 +git clone --depth=100 --branch 2.4 --quiet git://github.com/silverstripe/silverstripe-installer.git $BUILD_DIR +git clone --depth=100 --branch 1.2 --quiet git://github.com/silverstripe-labs/silverstripe-sqlite3.git $BUILD_DIR/sqlite3 +git clone --depth=100 --branch 1.0 --quiet git://github.com/silverstripe/silverstripe-postgresql.git $BUILD_DIR/postgresql +git clone --depth=100 --quiet --branch 2.4 git://github.com/silverstripe/sapphire.git $BUILD_DIR/sapphire +cp $BUILD_DIR/sapphire/tests/travis/_ss_environment.php $BUILD_DIR +cp $BUILD_DIR/sapphire/tests/travis/_config.php $BUILD_DIR/mysite +cp -r . $BUILD_DIR/cms + +cd $BUILD_DIR From 3f24b0fc174eadc50341a67792a833c50f5d0d42 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 9 Nov 2012 13:14:28 +0100 Subject: [PATCH 2/3] Added README with build status --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..99ac0bec --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# SilverStripe CMS + +[![Build Status](https://secure.travis-ci.org/silverstripe/silverstripe-cms.png?branch=2.4)](https://travis-ci.org/silverstripe/silverstripe-cms) \ No newline at end of file From 6eb597a2d5701d0a7161106ecfd123da8830bcba Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 21 Nov 2012 14:03:04 +0100 Subject: [PATCH 3/3] Fixed travis.yml paths --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 324f2621..000cc5fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ before_script: - cd ~/builds/ss script: - - php framework/cli-script.php dev/tests/module/cms + - php sapphire/cli-script.php dev/tests/module/cms branches: except: