.travis.yml 601 B

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. sudo: false
  3. cache:
  4. - pip
  5. before_cache:
  6. - rm ~/.cache/pip/log/debug.log
  7. language: python
  8. python:
  9. - "3.6"
  10. install:
  11. - pip install --upgrade pip
  12. - pip install tox-travis
  13. script:
  14. - tox
  15. after_failure:
  16. - echo "Here's a list of installed Python packages:"
  17. - pip list --format=columns
  18. - echo Dumping logs, because tests failed to succeed
  19. - |
  20. for log in `ls .tox/*/log/*.log`
  21. do
  22. echo Outputting $log
  23. cat $log
  24. done
  25. - pip_debug_log=/home/travis/.cache/pip/log/debug.log
  26. - echo Outputting pip debug log from $pip_debug_log
  27. - cat $pip_debug_log