Skip to content

Commit

Permalink
ci: install all packages first
Browse files Browse the repository at this point in the history
All packages need to be installed before we can run (some) of the checks and
code generators reliably. More precisely, anything that using x/tools/go/loader
is fragile (this includes stringer, vet and others).

The blocking issue is golang/go#14120; see
golang/go#10249 for some more concrete discussion on
`stringer` and golang/go#16086 for `vet`.
  • Loading branch information
tbg committed Oct 14, 2016
1 parent 3d017fb commit dce7de3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/teamcity-check.sh
@@ -1,7 +1,15 @@
#!/usr/bin/env bash
set -exuo pipefail
build/builder.sh make check 2>&1 | go-test-teamcity
# All packages need to be installed before we can run (some) of the checks
# and code generators reliably. More precisely, anything that using
# x/tools/go/loader is fragile (this includes stringer, vet and others).
#
# The blocking issue is https://github.com/golang/go/issues/14120; see
# https://github.com/golang/go/issues/10249 for some more concrete discussion
# on `stringer` and https://github.com/golang/go/issues/16086 for `vet`.
build/builder.sh make gotestdashi 2>&1

build/builder.sh make check 2>&1 | go-test-teamcity
build/builder.sh go generate ./... 2>&1
build/builder.sh /bin/bash -c '! git status --porcelain | read || (git status; git diff -a; exit 1)' 2>&1

Expand Down

0 comments on commit dce7de3

Please sign in to comment.