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: include:
- stage: Lint & Vendor Check - stage: Lint & Vendor Check
sudo: required sudo: required
before_script: make dep-ensure
script: script:
- make lint - make lint
- make vendor-check - make vendor-check

View File

@ -156,7 +156,7 @@ lint:
@echo "lint" @echo "lint"
@gometalinter ./... @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 clean: ##@other Cleanup
rm -fr build/bin/* rm -fr build/bin/*

View File

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