Skip to content

Commit

Permalink
[Travis] Change to use script for behat testing using correct branch …
Browse files Browse the repository at this point in the history
…on conposer install
  • Loading branch information
andrerom committed Feb 25, 2015
1 parent 1f2e71f commit 3a519bb
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions bin/.travis/prepare_behat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,15 @@

# File for setting up system for behat testing, just like done in DemoBundle's .travis.yml

# Change local git repo to be a full one as we will reuse it for composer install below
git fetch --unshallow && git checkout -b tmp_travis_branch
export BRANCH_BUILD_DIR=$TRAVIS_BUILD_DIR
export TRAVIS_BUILD_DIR="$HOME/build/ezpublish-community"
cd "$HOME/build"

# Change the branch and/or remote to use a different ezpublish branch/distro
# Checkout meta repo, change the branch and/or remote to use a different ezpublish branch/distro
git clone --depth 1 --single-branch --branch master https://github.com/ezsystems/ezpublish-community.git
cd ezpublish-community

# Use this if you depend on another branch for a dependency (only works for the ezsystems remote)
# (note that packagist may take time to update the references, leading to errors. Just retrigger the build)
#
# Example:
# composer require --no-update ezsystems/DemoBundle:dev-MyCustomBranch

# Prepare system (Apache, Mysql, Sahi/Selenium, eZ Publish)
./bin/.travis/prepare_system.sh
./bin/.travis/prepare_testsystem.sh
./bin/.travis/prepare_ezpublish.sh

# Replace kernel with the one from pull-request/current checkout
rm -rf vendor/ezsystems/ezpublish-kernel
mv "$BRANCH_BUILD_DIR" vendor/ezsystems/ezpublish-kernel
# Install everything needed for behat testing, using our local branch of this repo
./bin/.travis/setup_from_external_repo.sh $BRANCH_BUILD_DIR "ezsystems/ezpublish-kernel:dev-tmp_travis_branch"

0 comments on commit 3a519bb

Please sign in to comment.