Disable Xdebug in push builds to speed them up

This commit is contained in:
Ben Ramsey
2020-01-29 13:16:20 -06:00
parent 8dc64d99ff
commit 52cbbe34be
5 changed files with 30 additions and 4 deletions
+7 -1
View File
@@ -14,10 +14,16 @@ fi
architecture="${ARCH:-${TRAVIS_CPU_ARCH:-$(uname -m)}}"
# Only use Xdebug if running as a cron job on Travis CI
xdebug=""
if [ "${TRAVIS_EVENT_TYPE}" != "cron" ]; then
xdebug="-without-xdebug"
fi
cmd_proxy=""
if [ "${architecture}" = "arm32" ]; then
image="benramsey/ramsey-uuid:php-${php_version}-arm32v7"
image="benramsey/ramsey-uuid:php-${php_version}-arm32v7${xdebug}"
volumes="-v ${PWD}:${PWD} -v ${HOME}/.composer/cache:/root/.composer/cache"
cmd_proxy="docker run --rm ${volumes} -w ${PWD} ${image}"
fi