1#!/bin/sh 2set -eu 3if [ ! -e "$(dirname "$0")/ci/.git" ]; then 4 set -x 5 git submodule update --init 6 set +x 7fi 8. "$(dirname "$0")/ci/lib.sh" 9cd "$(dirname "$0")" 10 11job_parseflags "$@" 12runjob fmt ./ci/bin/fmt.sh & 13runjob lint ci_go_lint & 14runjob build 'go build ./...' & 15runjob test 'go test ./...' & 16ci_waitjobs