Passing through $TRAVIS_BRANCH to before_script

This commit is contained in:
Ingo Schommer 2012-11-23 16:10:07 +01:00
parent 47e14f5e56
commit b42cb5c308
2 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,7 @@ matrix:
env: TESTDB=PGSQL
before_script:
- ./tests/travis/before_script ~/builds/ss
- ./tests/travis/before_script ~/builds/ss $TRAVIS_BRANCH
- cd ~/builds/ss
script:

View File

@ -1,4 +1,5 @@
BUILD_DIR=$1
TRAVIS_BRANCH=$2
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