diff options
Diffstat (limited to 'scripts/docker/files/start-trial-test.sh')
-rwxr-xr-x | scripts/docker/files/start-trial-test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/docker/files/start-trial-test.sh b/scripts/docker/files/start-trial-test.sh new file mode 100755 index 00000000..98b09e53 --- /dev/null +++ b/scripts/docker/files/start-trial-test.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Run Soledad tests. + +CMD="/usr/local/soledad/test-env.py" +REPO="/var/local/soledad" + +if [ ! -z "${SOLEDAD_REMOTE}" ]; then + git -C ${REPO} remote add test ${SOLEDAD_REMOTE} + git -C ${REPO} fetch test +fi + +if [ ! -z "${SOLEDAD_BRANCH}" ]; then + git -C ${REPO} checkout ${SOLEDAD_BRANCH} +fi + +${CMD} couch start + +trial leap.soledad.common |