*: remove shadowing of variables from etcd and add travis test

We've been bitten by this enough times that I wrote a tool so that
it never happens again.
This commit is contained in:
Barak Michener
2015-02-17 16:15:48 -05:00
parent 0a5707420b
commit 92dca0af0f
20 changed files with 103 additions and 92 deletions

9
test
View File

@@ -60,4 +60,13 @@ if [ -n "${vetRes}" ]; then
exit 255
fi
if [ -f `which go-nyet` ]; then
echo "Checking go-nyet..."
nyetRes=$(go-nyet -exitWith 0 $FMT)
if [ -n "${nyetRes}" ]; then
echo -e "go-nyet checking failed:\n${nyetRes}"
exit 255
fi
fi
echo "Success"