Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Merge 29fceea into 1794a3f
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI committed Sep 7, 2018
2 parents 1794a3f + 29fceea commit 9445575
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .travis/before_install_test.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
set -ev

PHP_INI_DIR="$HOME/.phpenv/versions/$(phpenv version-name)/etc/conf.d/"
Expand All @@ -9,6 +9,19 @@ echo "memory_limit=3072M" >> "$TRAVIS_INI_FILE"

sed --in-place "s/\"dev-master\":/\"dev-${TRAVIS_COMMIT}\":/" composer.json

# TODO: remove when drop PHP 5 support
# symfony/maker-bundle only works with PHP 7 and higher
if [ "${TRAVIS_PHP_VERSION:0:3}" != "5.6" ]; then
# but only with Symfony 3.4 and higher
if [ "$SYMFONY" != "" ]; then
if [ "${SYMFONY:0:3}" != "2.8" ] && [ "${SYMFONY:0:3}" != "3.3" ] ; then
composer require "symfony/maker-bundle:$" --no-update
fi
else
composer require "symfony/maker-bundle:$" --no-update
fi
fi

if [ "$SYMFONY" != "" ]; then composer require "symfony/symfony:$SYMFONY" --no-update; fi;
if [ "$SONATA_ADMIN" != "" ]; then composer require "sonata-project/admin-bundle:$SONATA_ADMIN" --no-update; fi;
if [ "$SONATA_BLOCK" != "" ]; then composer require "sonata-project/block-bundle:$SONATA_BLOCK" --no-update; fi;

0 comments on commit 9445575

Please sign in to comment.