1
0
mirror of synced 2026-01-04 18:04:31 -05:00
Files
airbyte/tools/bin/test-temporal-migration.sh
2021-11-11 13:40:09 -08:00

31 lines
731 B
Bash
Executable File

#! /bin/bash
set -ex
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if ! command -v timeout &> /dev/null
then
echo "timeout could not be found, installing it"
brew install coreutils
fi
NEW_HASH="$( git rev-parse HEAD )"
git checkout master
git pull --no-rebase
SUB_BUILD=PLATFORM "$SCRIPT_DIR"/../../gradlew -p "$SCRIPT_DIR"/../.. generate-docker
cd "$SCRIPT_DIR"/../..
VERSION=dev docker-compose -f "$SCRIPT_DIR"/../../docker-compose.yaml up &
sleep 75
VERSION=dev docker-compose down
git stash
git checkout $NEW_HASH
SUB_BUILD=PLATFORM "$SCRIPT_DIR"/../../gradlew -p "$SCRIPT_DIR"/../.. generate-docker
VERSION=dev docker-compose -f "$SCRIPT_DIR"/../../docker-compose.yaml up