Skip to content

Commit

Permalink
#1053 / 2.6: just import psutil, don't run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed May 6, 2017
1 parent 475211e commit 3b420a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .ci/travis/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ set -x

PYVER=`python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))'`

python -V

# setup OSX
if [[ "$(uname -s)" == 'Darwin' ]]; then
if which pyenv > /dev/null; then
Expand All @@ -17,8 +19,10 @@ fi
python setup.py build
python setup.py develop

# run tests (with coverage)
if [[ $PYVER == '2.7' ]] && [[ "$(uname -s)" != 'Darwin' ]]; then
# run tests
if [[ $PYVER == '2.6' ]]; then
python -c "import psutil"
else if [[ $PYVER == '2.7' ]] && [[ "$(uname -s)" != 'Darwin' ]]; then
coverage run psutil/tests/__main__.py
else
python psutil/tests/__main__.py
Expand Down

0 comments on commit 3b420a8

Please sign in to comment.