This repository has been archived by the owner on Jun 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis/run_tests.sh: set -ex; fix shellcheck issues (#170)
- Loading branch information
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
PYTHON_MAJOR_VERSION=$(python -c "import sys; print(sys.version_info[0])"); | ||
mkdir -p $PIP_CACHE | ||
mkdir -p "$PIP_CACHE" | ||
mkdir -p wheelhouse | ||
psql -c 'create database opbeat_test;' -U postgres | ||
pip install -U pip | ||
pip install -r test_requirements/requirements-${WEBFRAMEWORK}.txt --cache-dir ${PIP_CACHE} | ||
pip install -r test_requirements/requirements-python-${PYTHON_MAJOR_VERSION}.txt --cache-dir ${PIP_CACHE} | ||
pip install -r "test_requirements/requirements-${WEBFRAMEWORK}.txt" --cache-dir "${PIP_CACHE}" | ||
pip install -r "test_requirements/requirements-python-${PYTHON_MAJOR_VERSION}.txt" --cache-dir "${PIP_CACHE}" | ||
if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then | ||
pip install -r test_requirements/requirements-asyncio.txt --cache-dir ${PIP_CACHE}; | ||
pip install -r test_requirements/requirements-asyncio.txt --cache-dir "${PIP_CACHE}" | ||
fi | ||
if [[ $TRAVIS_PYTHON_VERSION != 'pypy' ]]; then | ||
pip install -r test_requirements/requirements-cpython.txt --cache-dir ${PIP_CACHE}; | ||
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then | ||
pip install -r test_requirements/requirements-pypy.txt --cache-dir "${PIP_CACHE}" | ||
else | ||
pip install -r test_requirements/requirements-cpython.txt --cache-dir "${PIP_CACHE}" | ||
if [[ $PYTHON_MAJOR_VERSION == '2' ]]; then | ||
pip install -r test_requirements/requirements-zerorpc.txt --cache-dir ${PIP_CACHE}; | ||
pip install -r test_requirements/requirements-zerorpc.txt --cache-dir "${PIP_CACHE}" | ||
fi | ||
fi | ||
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then | ||
pip install -r test_requirements/requirements-pypy.txt --cache-dir ${PIP_CACHE}; | ||
fi | ||
|
||
make test | ||
make test |