Checking docs
Checking formatting
Formatting wrong in following files
_integration-tests/tests/examples_test.go
Crushing failure and despair.
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/src/launchpad.net/snappy
cp -a . $GOPATH/src/launchpad.net/snappy/
cd $GOPATH/src/launchpad.net/snappy
sh -v ./run-checks
#!/bin/sh
set -eu
if which goctest >/dev/null; then
goctest="goctest"
else
goctest="go test"
fi
QUICK=""
if [ "${1:-}" = "--quick" ]; then
QUICK=yes
fi
endmsg() {
if [ $? -eq 0 ]; then p="success.txt"
m="All good, what could possibly go wrong."
else p="failure.txt"
m="Crushing failure and despair."
fi
echo
if [ -t 1 -a -z "$QUICK" ]; then
cat "data/$p"
else
echo "$m"
fi
}
trap endmsg EXIT
echo Checking docs
./mdlint.py docs/*.md
echo Checking formatting
fmt=$(gofmt -l .)
if [ -n "$fmt" ]; then
echo "Formatting wrong in following files"
echo "$fmt"
exit 1
fi
The attempt to merge lp:~elopio/snappy/examples1 into lp:snappy failed. Below is the output from the failed tests.
Checking docs tests/tests/ examples_ test.go
Checking formatting
Formatting wrong in following files
_integration-
Crushing failure and despair.
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly src/launchpad. net/snappy src/launchpad. net/snappy/ src/launchpad. net/snappy
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
sh -v ./run-checks
#!/bin/sh
set -eu
if which goctest >/dev/null; then "goctest"
goctest=
else
goctest="go test"
fi
QUICK=""
if [ "${1:-}" = "--quick" ]; then
QUICK=yes
fi
endmsg() {
p="success. txt"
p="failure. txt"
if [ $? -eq 0 ]; then
m="All good, what could possibly go wrong."
else
m="Crushing failure and despair."
fi
echo
if [ -t 1 -a -z "$QUICK" ]; then
cat "data/$p"
else
echo "$m"
fi
}
trap endmsg EXIT
echo Checking docs
./mdlint.py docs/*.md
echo Checking formatting
fmt=$(gofmt -l .)
if [ -n "$fmt" ]; then
echo "Formatting wrong in following files"
echo "$fmt"
exit 1
fi