.travis.yml 1.3 KB

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