Ensure that Travis CI fails the build if the patches are incorrect

This commit is contained in:
Pedro Pombeiro 2018-05-02 11:08:53 +02:00 committed by Pedro Pombeiro
parent 7f81323fdc
commit 4438d116b1
3 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ jobs:
include:
- stage: Lint & Vendor Check
sudo: required
before_script: make dep-ensure
script:
- make lint
- make vendor-check

View File

@ -156,7 +156,7 @@ lint:
@echo "lint"
@gometalinter ./...
ci: lint mock test-unit test-e2e ##@tests Run all linters and tests at once
ci: lint mock dep-ensure test-unit test-e2e ##@tests Run all linters and tests at once
clean: ##@other Cleanup
rm -fr build/bin/*

View File

@ -182,7 +182,7 @@ for ((i=0; i<${#patches[@]}; i++)); do
echo "Failed and reverting: $f"
gitApplyReverse "$f" "$basepath"
echo -en "\\n"
exit
exit 1
fi
done