blob: d4c72cc1c8c10427ca06ce43b70f3f47de7daff2 [file] [log] [blame]
#!/bin/sh
workspace="./WORKSPACE"
if [[ ! -f ${workspace} ]] || [[ ! $(head -n 1 ${workspace}) == *"gerrit"* ]]; then
echo Please change to cloned Gerrit repo from https://gerrit.googlesource.com/gerrit/
exit 1
fi
mitm_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
bazel build //polygerrit-ui/app:test_components &
${mitm_dir}/dev-chrome.sh &
${mitm_dir}/mitm-docker.sh "serve-app-dev.py --app $(pwd)/polygerrit-ui/app/ --components $(pwd)/bazel-bin/polygerrit-ui/app/"