.travis.yml 689 B

123456789101112131415161718192021222324252627282930
  1. dist: precise
  2. language: python
  3. python:
  4. - "3.4"
  5. - "3.5"
  6. - "3.6"
  7. services:
  8. - mysql
  9. env:
  10. global:
  11. - DJANGO_SETTINGS_MODULE="travis_test.travis_settings"
  12. branches:
  13. only:
  14. - master
  15. # command to install dependencies
  16. install:
  17. - pip install -r travis_test/requirements.txt
  18. - pip install python-coveralls
  19. - pip install coverage
  20. before_script:
  21. - mysql -e 'CREATE DATABASE `website` /*!40100 DEFAULT CHARACTER SET utf8 */;'
  22. - python manage.py makemigrations
  23. - python manage.py migrate
  24. - python manage.py collectstatic --noinput
  25. - python manage.py compress --force
  26. # command to run tests
  27. script:
  28. - coverage run manage.py test
  29. after_success:
  30. - coveralls