.travis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. language: python
  2. cache:
  3. directories:
  4. - $HOME/.cache/pip
  5. python:
  6. - "2.7"
  7. - "3.8"
  8. install:
  9. - echo "#install#"
  10. # For some reason Travis' build envs have wildly different pip/setuptools
  11. # versions between minor Python versions, and this can cause many hilarious
  12. # corner packaging cases. So...
  13. - pip install --upgrade pip
  14. # Setuptools 34+ seems to get less stable
  15. # - pip install 'setuptools>33,<34'
  16. # Pre-requirements sanity test (again, resembles pure, non-dev install
  17. # environment.) Avoids e.g. spec's 'six' from gumming up our attempts to
  18. # import our vendorized 'six'.
  19. - pip install -r requirements/dev.txt
  20. - pip list --format=columns
  21. before_script:
  22. - echo "#before_script#"
  23. # stop the build if there are Python syntax errors or undefined names
  24. - flake8 . --count --select=F401,E9,F63,F72,F82 --show-source --statistics
  25. # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
  26. - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
  27. - mkdir -p /tmp/walle/{logs,library,webroot,releases}
  28. script:
  29. - echo "#script#"
  30. - export FLASK_APP=waller.py
  31. - python -m flask test
  32. notifications:
  33. on_success: never
  34. on_failure: always