summaryrefslogtreecommitdiff
path: root/scripts/docker/files/bin/run-tox.sh
blob: 793ce6e15ec4d9c2cc0b8dd456799c2a2e18b6d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

REPO=/builds/leap/soledad/testing

if [ ! -z "${SOLEDAD_REMOTE}" ]; then
  git -C ${REPO} remote set-url origin ${SOLEDAD_REMOTE}
  git -C ${REPO} fetch origin
fi

if [ ! -z "${SOLEDAD_BRANCH}" ]; then
  git -C ${REPO} checkout ${SOLEDAD_BRANCH}
fi

(cd ${REPO}; tox -- -v --durations 0 --couch-url http://couchdb:5984)