Skip to content

Commit

Permalink
Merge branch '2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Marek Nocon committed Jul 30, 2018
2 parents c283a22 + d9011e8 commit 7775d5c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Expand Up @@ -8,6 +8,7 @@ env:
- COMPOSE_FILE="doc/docker/base-dev.yml:doc/docker/selenium.yml"
- SYMFONY_ENV=behat
- SYMFONY_DEBUG=1
- EZPLATFORM_REPO="https://github.com/ezsystems/ezplatform.git"

matrix:
# mark as finished before allow_failures are run
Expand Down Expand Up @@ -36,7 +37,7 @@ before_install:
before_script:
# Prepare system
- if [ "$TEST_CONFIG" != "" ] ; then ./bin/.travis/prepare_unittest.sh ; fi
- if [ "$BEHAT_OPTS" != "" ] ; then ./bin/.travis/prepare_behat.sh ; fi
- if [ "$BEHAT_OPTS" != "" ]; then ./bin/.travis/prepare_ezplatform.sh ; fi
# Detecting timezone issues by testing on random timezone
- TEST_TIMEZONES=("America/New_York" "Asia/Calcutta" "UTC")
- TEST_TIMEZONE=${TEST_TIMEZONES["`shuf -i 0-2 -n 1`"]}
Expand Down
20 changes: 0 additions & 20 deletions bin/.travis/prepare_behat.sh

This file was deleted.

12 changes: 12 additions & 0 deletions bin/.travis/prepare_ezplatform.sh
@@ -0,0 +1,12 @@
#!/bin/bash

EZPLATFORM_BRANCH=`php -r 'echo json_decode(file_get_contents("./composer.json"))->extra->_ezplatform_branch_for_behat_tests;'`
EZPLATFORM_BRANCH="${EZPLATFORM_BRANCH:-master}"
PACKAGE_BUILD_DIR=$PWD
EZPLATFORM_BUILD_DIR=${HOME}/build/ezplatform

echo "> Cloning ezsystems/ezplatform:${EZPLATFORM_BRANCH}"
git clone --depth 1 --single-branch --branch "${EZPLATFORM_BRANCH}" ${EZPLATFORM_REPO} ${EZPLATFORM_BUILD_DIR}
cd ${EZPLATFORM_BUILD_DIR}

/bin/bash ./bin/.travis/trusty/setup_ezplatform.sh "${COMPOSE_FILE}" '' "${PACKAGE_BUILD_DIR}"
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -39,7 +39,7 @@
},
"extra": {
"_ezplatform_branch_for_behat_tests_comment_": "ezplatform branch to use to run Behat tests",
"_ezplatform_branch_for_behat_tests": "master",
"_ezplatform_branch_for_behat_tests": "2.2",
"branch-alias": {
"dev-master": "2.3.x-dev",
"dev-tmp_ci_branch": "2.3.x-dev"
Expand Down

0 comments on commit 7775d5c

Please sign in to comment.