#!/bin/bash -l
set -e

pushd deployments-buildpacks
  bundle
  source ./bin/switch $DEPLOYMENT_NAME
popd

cd php-buildpack
pip install -r requirements.txt 

./run_tests.sh

for stack in $STACKS; do
  ../ci-tools/buildpack-build --uncached --stack=$stack --host=$DEPLOYMENT_NAME.cf-app.com
  ../ci-tools/buildpack-build --cached --stack=$stack --host=$DEPLOYMENT_NAME.cf-app.com
done

#!/bin/bash -l
set -e

export TMPDIR=$(mktemp -d)

pushd deployments-buildpacks
  bundle
  source ./bin/switch $DEPLOYMENT_NAME
popd

cd php-buildpack
pip install -r requirements.txt 

./run_tests.sh

for stack in $STACKS; do
  ../ci-tools/buildpack-build --uncached --stack=$stack --host=$DEPLOYMENT_NAME.cf-app.com
  ../ci-tools/buildpack-build --cached --stack=$stack --host=$DEPLOYMENT_NAME.cf-app.com
done

Set TMPDIR env var to a temp dir
Set TMPDIR env var to a temp dir

Signed-off-by: Sai To Yeung <34863b63a003198e4cfe9dcefb53bc5c32a392d6@gmail.com>
