~james-page/ubuntu/raring/juju-core/1.10.0

« back to all changes in this revision

Viewing changes to src/launchpad.net/goose/.lbox.check

  • Committer: James Page
  • Author(s): James Page
  • Date: 2013-04-24 10:08:07 UTC
  • Revision ID: james.page@canonical.com-20130424100807-bb153yi4shsb4ydh
Tags: upstream-1.10.0
ImportĀ upstreamĀ versionĀ 1.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
BADFMT=`find * -name '*.go' | xargs gofmt -l`
 
6
if [ -n "$BADFMT" ]; then
 
7
        BADFMT=`echo "$BADFMT" | sed "s/^/  /"`
 
8
        echo "gofmt is sad:\n\n$BADFMT"
 
9
        exit 1
 
10
fi
 
11
go build ./...
 
12
 
 
13
 
 
14
VERSION=`go version | awk '{print $3}'`
 
15
if [ $VERSION == 'devel' ]; then
 
16
        go tool vet \
 
17
                -methods \
 
18
                -printf \
 
19
                -rangeloops \
 
20
                -printfuncs ErrorContextf:1 \
 
21
                .
 
22
fi