Ensure that Travis CI fails the build if the patches are incorrect
This commit is contained in:
parent
7f81323fdc
commit
4438d116b1
|
@ -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
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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/*
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue