Create a test matrix on Travis CI to help testing multiple options

This commit is contained in:
Bruno Alla 2019-03-11 21:23:01 +00:00
parent 9eab0b9365
commit 858c88e02b
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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