Skip to content

Commit

Permalink
Add django tests to travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
damklis committed Sep 20, 2020
1 parent c3f51e3 commit 5f60220
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ python:
services:
- docker

before_script: pip install docker-compose flake8
before_script:
- pip install docker-compose flake8

script:
- docker-compose run airflow sh -c "python -m pytest -v --show-capture=no" && python -m flake8 -v
- bash ./run_tests.sh
1 change: 0 additions & 1 deletion connect/connectors/register_connectors.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh


/etc/confluent/docker/run &
echo -e "Waiting for Kafka Connect to start listening on localhost"
while [ $(curl -s -o /dev/null -w %{http_code} http://localhost:8083/connectors) -ne 200 ] ; do
Expand Down
5 changes: 5 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

docker-compose run airflow sh -c "python -m pytest -v --show-capture=no" \
&& python -m flake8 -v \
&& docker-compose run api sh -c "./manage.py test -k"

0 comments on commit 5f60220

Please sign in to comment.