From a9f847bed1e7d355ca9878015b9f99d846c1a8b3 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 11 Nov 2018 21:38:06 +0200 Subject: [PATCH] Lint job can fail build --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e8bb7b5f..d5aaeafb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -82,7 +82,9 @@ before_script: script: - | - if [ "$DOCKER" == "" ] && [ "$LINT" == "" ]; then + if [ "$LINT" == "true" ]; then + flake8 --statistics --count + elif [ "$DOCKER" == "" ]; then .travis/script.sh elif [ "$DOCKER" ]; then # the Pillow user in the docker container is UID 1000 @@ -92,8 +94,6 @@ script: after_success: - | - if [ "$LINT" == "true" ]; then - flake8 --statistics --count - else + if [ "$LINT" == "" ]; then .travis/after_success.sh fi