mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 03:54:02 +03:00
68f7268770
* 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
32 lines
475 B
YAML
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
|