summaryrefslogtreecommitdiff
path: root/scripts/docker/files/bin/run-trial-from-gitlab-ci.sh
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-04-19 10:18:27 +0200
committerdrebs <drebs@leap.se>2017-04-19 11:49:42 +0200
commit40f2cb8b1f07b1346e01ff69b57e14c492f1cd0b (patch)
tree9cab2f54014ffb7a56e1d75fd5ef0a70369afd63 /scripts/docker/files/bin/run-trial-from-gitlab-ci.sh
parenta4558ea4874e0de3561f228b41ef0a94a2e4c326 (diff)
[test] remove docker scripts from this repo
Docker scripts are only used for CI and do not need to be in this repository. Beause of that, we decided to moved the docker scripts to a private repository where dockerfiles for other parts of leap also live.
Diffstat (limited to 'scripts/docker/files/bin/run-trial-from-gitlab-ci.sh')
-rwxr-xr-xscripts/docker/files/bin/run-trial-from-gitlab-ci.sh50
1 files changed, 0 insertions, 50 deletions
diff --git a/scripts/docker/files/bin/run-trial-from-gitlab-ci.sh b/scripts/docker/files/bin/run-trial-from-gitlab-ci.sh
deleted file mode 100755
index 96436e26..00000000
--- a/scripts/docker/files/bin/run-trial-from-gitlab-ci.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-
-# Run Soledad trial tests in a docker container created by gitlab-ci.
-#
-# Gitlab-ci will copy the current test code into /builds/leap/soledad, so this
-# script has to uninstall currently installed soledad packages and re-install
-# from that location instead.
-#
-# This script is meant to be copied to the docker container and run upon
-# container start.
-
-CMD="/usr/local/soledad/setup-test-env.py"
-BASEDIR="/builds/leap/soledad"
-
-
-install_deps() {
- # ensure all dependencies are installed
- for pkg in common client server; do
- testing="--testing"
- if [ "${pkg}" = "server" ]; then
- # soledad server doesn't currently have a requirements-testing.pip file,
- # so we don't pass the option when that is the case
- testing=""
- fi
- pip uninstall leap.soledad.${pkg}
- (cd ${BASEDIR}/${pkg} \
- && ./pkg/pip_install_requirements.sh ${testing} --use-leap-wheels \
- && python setup.py develop)
- done
-}
-
-
-start_couch() {
- # currently soledad trial tests need a running couch on environment
- ${CMD} couch start
-}
-
-
-run_tests() {
- trial leap.soledad.common
-}
-
-
-main() {
- install_deps
- start_couch
- run_tests
-}
-
-main