代码拉取完成,页面将自动刷新
#! /bin/bash -e
KEEP_RUNNING=
ASSEMBLE_ONLY=
USE_EXISTING_CONTAINERS=
DATABASE_SERVICES="dynamodblocal mysql dynamodblocal-init"
if [ -z "$DOCKER_COMPOSE" ] ; then
DOCKER_COMPOSE=docker-compose
fi
while [ ! -z "$*" ] ; do
case $1 in
"--keep-running" )
KEEP_RUNNING=yes
;;
"--assemble-only" )
ASSEMBLE_ONLY=yes
;;
"--use-existing-containers" )
USE_EXISTING_CONTAINERS=yes
;;
"--help" )
echo ./build-and-test-all.sh --keep-running --assemble-only --use-existing-containers
exit 0
;;
esac
shift
done
echo KEEP_RUNNING=$KEEP_RUNNING
. ./set-env.sh
# TODO Temporarily
./gradlew buildContracts
./gradlew compileAll
if [ -z "$USE_EXISTING_CONTAINERS" ] ; then
${DOCKER_COMPOSE?} down --remove-orphans -v
fi
${DOCKER_COMPOSE?} up -d --build ${DATABASE_SERVICES?}
./gradlew waitForMySql
echo mysql is started
# Test ./mysql-cli.sh
echo 'show databases;' | ./mysql-cli.sh -i
${DOCKER_COMPOSE?} up -d --build cdc-service
if [ -z "$ASSEMBLE_ONLY" ] ; then
./gradlew -x :ftgo-end-to-end-tests:test $* build
${DOCKER_COMPOSE?} build
./gradlew $* integrationTest
./gradlew cleanComponentTest componentTest
# Reset the DB/messages
${DOCKER_COMPOSE?} down --remove-orphans -v
${DOCKER_COMPOSE?} up -d ${DATABASE_SERVICES?}
./gradlew waitForMySql
echo mysql is started
${DOCKER_COMPOSE?} up -d
else
./gradlew $* assemble
${DOCKER_COMPOSE?} up -d --build ${DATABASE_SERVICES?}
./gradlew waitForMySql
echo mysql is started
${DOCKER_COMPOSE?} up -d --build
fi
./wait-for-services.sh
./run-end-to-end-tests.sh
# NEED TO FIX
# ./run-graphql-api-gateway-tests.sh
if [ -z "$KEEP_RUNNING" ] ; then
${DOCKER_COMPOSE?} down --remove-orphans -v
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。