Skip to content

Commit

Permalink
Moving coverage to first step in build.sh (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed May 1, 2018
1 parent e7ef1e3 commit bd90834
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ set -x
# Delete pyc files from previous builds.
find . -name "*.pyc" -delete

# Run unit tests and calculate code coverage.
coverage run \
--source "ingredient_phrase_tagger" \
-m unittest discover

# Check that source has correct formatting.
yapf \
--diff \
Expand All @@ -21,10 +26,5 @@ yapf \
# Run static analysis for Python bugs/cruft.
pyflakes bin/ ingredient_phrase_tagger/

# Run unit tests and calculate code coverage.
coverage run \
--source "ingredient_phrase_tagger" \
-m unittest discover

# Run E2E tests.
bash ./test_e2e

0 comments on commit bd90834

Please sign in to comment.