Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

Commit

Permalink
travis/run_tests.sh: set -ex; fix shellcheck issues (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored and beniwohli committed Jul 27, 2017
1 parent e2456f6 commit 02af225
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions travis/run_tests.sh
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

0 comments on commit 02af225

Please sign in to comment.