.travis.yml 1.2 KB

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