Skip to content

Commit

Permalink
set PSUTIL_TESTING env var for CI services
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed May 18, 2017
1 parent 8223028 commit d2b3066
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ci/travis/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ python setup.py develop

# run tests (with coverage)
if [[ $PYVER == '2.7' ]] && [[ "$(uname -s)" != 'Darwin' ]]; then
python -Wa -m coverage run psutil/tests/__main__.py
PSUTIL_TESTING=1 python -Wa -m coverage run psutil/tests/__main__.py
else
python -Wa psutil/tests/__main__.py
PSUTIL_TESTING=1 python -Wa psutil/tests/__main__.py
fi

if [ "$PYVER" == "2.7" ] || [ "$PYVER" == "3.6" ]; then
# run mem leaks test
python -Wa psutil/tests/test_memory_leaks.py
PSUTIL_TESTING=1 python -Wa psutil/tests/test_memory_leaks.py
# run linter (on Linux only)
if [[ "$(uname -s)" != 'Darwin' ]]; then
python -Wa -m flake8
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ build: off

test_script:
- "%WITH_COMPILER% %PYTHON%/python -V"
- "%WITH_COMPILER% %PYTHON%/python psutil/tests/__main__.py"
- "set PSUTIL_TESTING=1 && %WITH_COMPILER% %PYTHON%/python psutil/tests/__main__.py"

after_test:
- "%WITH_COMPILER% %PYTHON%/python setup.py bdist_wheel"
Expand Down

0 comments on commit d2b3066

Please sign in to comment.