diff --git a/.travis.yml b/.travis.yml index 8e473f2..7b28499 100755 --- a/.travis.yml +++ b/.travis.yml @@ -21,14 +21,18 @@ before_install: - sudo /etc/init.d/postgresql stop + - echo -e "\nENV COVERALLS_REPO_TOKEN ${COVERALLS_REPO_TOKEN}" >> Dockerfile + script: - docker-compose up -d --build - > while ! docker logs backend | grep "Starting development server at http://0:8000/"; do sleep 5 done; - - docker exec -it backend python3 manage.py migrate - - docker exec -it backend python3 manage.py test + - docker exec -it backend bash -c ' + python3 manage.py migrate && + coverage run --source='.' manage.py test && + coveralls' after_script: - docker-compose down --remove-orphans \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index c0ad729..fb38550 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ # Django Django==2.2.5 psycopg2==2.8.3 -coverage==4.5.4 +python-coveralls==2.9.3 django-cors-headers==3.1.0 django-extensions==2.2.3 ipdb==0.12.2