summaryrefslogtreecommitdiff
path: root/scripts/docker/files
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2016-06-06 20:43:59 -0300
committerdrebs <drebs@leap.se>2016-06-06 21:40:44 -0300
commit57e21dc89f1cc5e34261da75d939e53edd3d5a2b (patch)
tree441f960a5a06df0985a8d930cba58f36384528cf /scripts/docker/files
parent7ee12a38d6e8230525f3401abdbd3def4d81502b (diff)
[test] add rule for running trial tests in a docker container
Diffstat (limited to 'scripts/docker/files')
-rwxr-xr-xscripts/docker/files/start-trial-test.sh19
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