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

# This is the entrypoint for "make test". It invokes Tox. If running
# outside the CI environment, it disables uploading the coverage report to codecov

set -eu

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

# skip the "codecov" env if not running on Travis
if [ "${GITHUB_ACTIONS}" = true ] ; then
    echo "Skipping codecov"
    export TOX_SKIP_ENV="codecov"
fi

# 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