mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-11 07:24:52 +03:00
Create a test matrix on Travis CI to help testing multiple options
This commit is contained in:
parent
9eab0b9365
commit
858c88e02b
14
.travis.yml
14
.travis.yml
|
@ -7,16 +7,18 @@ language: python
|
||||||
|
|
||||||
python: 3.6
|
python: 3.6
|
||||||
|
|
||||||
env:
|
|
||||||
- TOX_ENV=py36
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- docker-compose -v
|
- docker-compose -v
|
||||||
- docker -v
|
- docker -v
|
||||||
|
|
||||||
script:
|
matrix:
|
||||||
- tox -e $TOX_ENV
|
include:
|
||||||
- sh tests/test_docker.sh
|
- name: Tox test
|
||||||
|
script: tox -e py36
|
||||||
|
- name: Basic Docker
|
||||||
|
script: sh tests/test_docker.sh
|
||||||
|
- name: Docker with Celery
|
||||||
|
script: sh tests/test_docker.sh use_celery=y
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install tox
|
- pip install tox
|
||||||
|
|
|
@ -11,7 +11,7 @@ mkdir -p .cache/docker
|
||||||
cd .cache/docker
|
cd .cache/docker
|
||||||
|
|
||||||
# create the project using the default settings in cookiecutter.json
|
# create the project using the default settings in cookiecutter.json
|
||||||
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y
|
cookiecutter ../../ --no-input --overwrite-if-exists use_docker=y $@
|
||||||
cd my_awesome_project
|
cd my_awesome_project
|
||||||
|
|
||||||
# run the project's type checks
|
# run the project's type checks
|
||||||
|
|
Loading…
Reference in New Issue
Block a user