You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
django/.travis.yml

32 lines
797 B

language: python
python:
- "3.5"
- "3.6"
services:
- mysql
env:
global:
- DJANGO_SETTINGS_MODULE="travis_test.travis_settings"
branches:
only:
- master
# command to install dependencies
before_install:
- sudo apt-get update
- sudo apt-get install python-dev python3-dev libmysqlclient-dev
install:
- pip install -r travis_test/requirements.txt
- pip install python-coveralls
- pip install coverage codecov
before_script:
- mysql -e 'CREATE DATABASE `djangoblog` /*!40100 DEFAULT CHARACTER SET utf8 */;'
- python manage.py makemigrations
- python manage.py migrate
- python manage.py collectstatic --noinput
- python manage.py compress --force
# command to run tests
script:
- coverage run manage.py test
after_success:
- coveralls
- codecov