Simplified travis builds (external setup scripts)

This commit is contained in:
Ingo Schommer 2013-03-28 21:07:47 +01:00
parent c7b0666390
commit f212ebe0f0
2 changed files with 5 additions and 14 deletions

View File

@ -3,15 +3,16 @@ php:
- 5.3
env:
- TESTDB=MYSQL
- TESTDB=PGSQL
- DB=MYSQL CORE_RELEASE=2.4
- DB=PGSQL CORE_RELEASE=2.4
before_script:
- ./tests/travis/before_script ~/builds/ss
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss
- cd ~/builds/ss
script:
- php sapphire/cli-script.php dev/tests/module/cms
- phpunit cms/tests
branches:
except:

View File

@ -1,10 +0,0 @@
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