~wallyworld/juju-core/fast-lxc-everywhere

1113.2.9 by Roger Peppe
.lbox.check: use bash
1
#!/bin/bash
493.1.1 by Gustavo Niemeyer
build: add .lbox.check
2
3
set -e
4
1278.2.2 by Danilo Šegan
Move emacs auto-save files check to find command itself.
5
BADFMT=`find * -name '*.go' -not -name '.#*' | xargs gofmt -l`
493.1.1 by Gustavo Niemeyer
build: add .lbox.check
6
if [ -n "$BADFMT" ]; then
7
	BADFMT=`echo "$BADFMT" | sed "s/^/  /"`
713.3.1 by Dave Cheney
added CONTRIBUTING
8
	echo -e "gofmt is sad:\n\n$BADFMT"
493.1.1 by Gustavo Niemeyer
build: add .lbox.check
9
	exit 1
10
fi
531.3.1 by Dave Cheney
fixes
11
12
VERSION=`go version | awk '{print $3}'`
1809.2.1 by Roger Peppe
go vet fixes
13
go tool vet \
14
	-methods \
15
	-printf \
16
	-rangeloops \
1817.1.1 by Andrew Wilkins
Remove Logf from .lbox.check
17
	-printfuncs 'ErrorContextf:1,notFoundf:0,badReqErrorf:0,Commitf:0,Snapshotf:0,Debugf:0,Infof:0,Warningf:0,Errorf:0,Criticalf:0,Tracef:0' \
1809.2.1 by Roger Peppe
go vet fixes
18
	.
1109.1.2 by Dave Cheney
add go build check to lbox
19
20
# check this branch builds cleanly
21
go build launchpad.net/juju-core/...
1868.1.1 by Roger Peppe
environs/storage, state/statecmd: reenable tests
22
23
# check that all tests are wired up
24
./scripts/checktesting.bash