summaryrefslogtreecommitdiff
path: root/docker-entry.sh
blob: f1c7baa086f1da1996feea9a9491c82318f46e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# This is the entrypoint for "make test". It invokes Tox. If running
# within the CI environment, it also runs codecov

set -eu

REDIS_MASTER="${REDIS_MASTER_HOST}":"${REDIS_MASTER_PORT}"
echo "Testing against Redis Server: ${REDIS_MASTER}"

# use the wait-for-it util to ensure the server is running before invoking Tox
util/wait-for-it.sh ${REDIS_MASTER} -- tox -- --redis-url=redis://"${REDIS_MASTER}"/9
tox -e covreport

# if the TRAVIS env var is defined, invoke "codecov"
if [ ! -z ${TRAVIS-} ]; then
    tox -e codecov
fi