26 lines
908 B
Bash
Executable File
26 lines
908 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
. tools/lib/lib.sh
|
|
|
|
assert_root
|
|
|
|
echo "Starting app..."
|
|
|
|
# todo (cgardens) - docker-compose 1.27.3 contained a bug that causes a failure if the volume path
|
|
# does not exist when the volume is created. It was fixed in 1.27.4. Github actions virtual envs,
|
|
# however, new ubuntu release upgraded to 1.27.3 on 09/24/20. Once github actions virtual envs
|
|
# upgrades to 1.27.4, we can stop manually making the directory.
|
|
mkdir -p /tmp/airbyte_local
|
|
|
|
# Detach so we can run subsequent commands
|
|
VERSION=dev TRACKING_STRATEGY=logging docker-compose up -d
|
|
trap "echo 'docker-compose logs:' && docker-compose logs -t --tail 1000 && docker-compose down -v" EXIT
|
|
|
|
echo "Waiting for services to begin"
|
|
sleep 10 # TODO need a better way to wait
|
|
|
|
echo "Running e2e tests via gradle"
|
|
SUB_BUILD=PLATFORM USE_EXTERNAL_DEPLOYMENT=true ./gradlew :airbyte-tests:acceptanceTests --rerun-tasks --scan
|