Skip to content

Commit

Permalink
make godeps check conditional on godeps existing
Browse files Browse the repository at this point in the history
Signed-off-by: Tycho Andersen <[email protected]>
  • Loading branch information
Tycho Andersen authored and stgraber committed Oct 5, 2016
1 parent 36c8891 commit 4948f25
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/suites/static_analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ test_static_analysis() {
done
fi

OUT=$(godeps . ./shared | cut -f1)
if [ "${OUT}" != "$(printf "github.com/gorilla/websocket\ngopkg.in/yaml.v2\n")" ]; then
echo "ERROR: you added a new dependency to the client or shared; please make sure this is what you want"
echo "${OUT}"
if which godeps >/dev/null 2>&1; then
OUT=$(godeps . ./shared | cut -f1)
if [ "${OUT}" != "$(printf "github.com/gorilla/websocket\ngopkg.in/yaml.v2\n")" ]; then
echo "ERROR: you added a new dependency to the client or shared; please make sure this is what you want"
echo "${OUT}"
fi
fi

# Skip the tests which require git
Expand Down

0 comments on commit 4948f25

Please sign in to comment.