launchpad.net/~rogpeppe/juju-core/500-errgo-fix@v0.0.0-20140213181702-000000002356/.lbox.check (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  BADFMT=`find * -name '*.go' -not -name '.#*' | 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  go tool vet \
    14  	-methods \
    15  	-printf \
    16  	-rangeloops \
    17  	-printfuncs 'ErrorContextf:1,notFoundf:0,badReqErrorf:0,Commitf:0,Snapshotf:0,Debugf:0,Infof:0,Warningf:0,Errorf:0,Criticalf:0,Tracef:0' \
    18  	.
    19  
    20  # check this branch builds cleanly
    21  go build launchpad.net/juju-core/...
    22  
    23  # check that all tests are wired up
    24  ./scripts/checktesting.bash