From fa46f14f5d4466f4b6746a44d312f64c088d930c Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 24 Apr 2019 15:32:50 +1000 Subject: [PATCH] Run coveralls step after success --- .travis.yml | 3 +++ Makefile | 5 ++++- requirements/build.txt | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 09f5fa6f2d..d714573be0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,3 +15,6 @@ before_install: script: - make test - make style + +after-success: + - coveralls \ No newline at end of file diff --git a/Makefile b/Makefile index 8cbab5355c..831ab4ff3a 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,11 @@ style: flake8 InvenTree --ignore=C901,E501 test: + # Perform Django system checks python InvenTree/manage.py check - python InvenTree/manage.py test --noinput + + # Run the test framework (through coverage script) + coverage run InvenTree/manage.py test migrate: python InvenTree/manage.py makemigrations company diff --git a/requirements/build.txt b/requirements/build.txt index 95991e6e2a..9ec2467668 100644 --- a/requirements/build.txt +++ b/requirements/build.txt @@ -1,3 +1,4 @@ -r base.txt flake8==3.3.0 -coverage>=4.5.3 \ No newline at end of file +coverage>=4.5.3 +python-coveralls==2.9.1 \ No newline at end of file