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

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/.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/bash
 
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 -e "gofmt is sad:\n\n$BADFMT"
 
9
        exit 1
 
10
fi
 
11
 
 
12
VERSION=`go version | awk '{print $3}'`
 
13
if [ $VERSION == 'devel' ]; then
 
14
        go tool vet \
 
15
                -methods \
 
16
                -printf \
 
17
                -rangeloops \
 
18
                -printfuncs 'ErrorContextf:1,notFoundf:0,badReqErrorf:0,Commitf:0,Snapshotf:0,Debugf:0' \
 
19
                .
 
20
fi
 
21
 
 
22
# check this branch builds cleanly
 
23
go build launchpad.net/juju-core/...
 
24
 
 
25
# TODO(dfc) uncomment when the tests pass reliably
 
26
# go test launchpad.net/juju-core/...