Skip to content

Commit

Permalink
travis: Add a job doung test with tracemalloc enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyifei1999 committed Nov 26, 2019
1 parent 98dfad7 commit 6124de1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ matrix:
python: 3.8
env:
- ACTION=sdisttest
- name: "Python 3.8 on Linux (tracemalloc enabled)"
python: 3.8
env:
- ACTION=tracemalloctest
- name: "Python 3.8 on Linux (Code Coverage)"
python: 3.8
env:
Expand Down
11 changes: 11 additions & 0 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ test)
esac
;;

tracemalloctest)
case "$1" in
install)
pip install -ve .
;;
script)
$PYTHON -X tracemalloc -c '__import__("faulthandler").enable(); __import__("guppy").hpy().test(); __import__("guppy").heapy.heapyc.xmemstats()'
;;
esac
;;

sdisttest)
case "$1" in
install)
Expand Down

0 comments on commit 6124de1

Please sign in to comment.