cookiecutter-django/.travis.yml
Bruno Alla 68f7268770
Run Black on Travis (#1957)
* Create a test matrix on Travis CI to help testing multiple options

* Change test_docker.sh to fail if any command in it fails

* Run black on the CI with --check option

* Fix formatting of project files using black

* Install black in the docker container

* Exclude migrations in black checks

* Fix Black formatting violations

* Run black on the whole generated project & fix issues
2019-03-18 17:49:43 +00:00

32 lines
475 B
YAML

sudo: required
services:
- docker
language: python
python: 3.6
before_install:
- docker-compose -v
- docker -v
matrix:
include:
- name: Test
script: tox -e py36
- name: Black
script: tox -e black
- name: Basic Docker
script: sh tests/test_docker.sh
- name: Docker with Celery
script: sh tests/test_docker.sh use_celery=y
install:
- pip install tox
notifications:
email:
on_success: change
on_failure: always