Skip to content

Commit

Permalink
Adds Travis testing to the CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwelsh committed Sep 21, 2012
1 parent b599c3a commit 4506e92
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: php
php:
- 5.3
- 5.4

env:
- TESTDB=MYSQL
- TESTDB=PGSQL

matrix:
exclude:
- php: 5.4
env: 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:
- translation-staging
- 2.4

notifications:
irc:
channels:
- "irc.freenode.org#silverstripe"
10 changes: 10 additions & 0 deletions tests/travis/before_script
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BUILD_DIR=$1
git clone --depth=100 --quiet git://github.com/silverstripe/silverstripe-installer.git $BUILD_DIR
git clone --depth=100 --quiet git://github.com/silverstripe-labs/silverstripe-sqlite3.git $BUILD_DIR/sqlite3
git clone --depth=100 --quiet git://github.com/silverstripe/silverstripe-postgresql.git $BUILD_DIR/postgresql
git clone --depth=100 --quiet -b ${TRAVIS_BRANCH:-master} git://github.com/silverstripe/sapphire.git $BUILD_DIR/framework
cp $BUILD_DIR/framework/tests/travis/_ss_environment.php $BUILD_DIR
cp $BUILD_DIR/framework/tests/travis/_config.php $BUILD_DIR/mysite
cp -r . $BUILD_DIR/cms

cd $BUILD_DIR

0 comments on commit 4506e92

Please sign in to comment.