aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-09-30 14:16:24 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-09-30 15:23:11 +0200
commit34b9b3c74ac5b10706e32142566a63c4d21d933e (patch)
treee1a2afe32c44a6bae6c7c57440554a18343b1c67 /Makefile
parentc95c6fe590fc5b9f8985698f9deba36479090280 (diff)
Makefile: test appengine app build locally
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1431efa0c..99984df84 100644
--- a/Makefile
+++ b/Makefile
@@ -327,6 +327,12 @@ presubmit_arch: descriptions
presubmit_big: descriptions
# This target runs on CI in syz-big-env,
# so we test packages that need GCloud SDK or OS toolchains.
+ifneq (, $(shell which go1.12))
+ # Test Appengine app build locally with Go 1.12 (syz-big-env has it).
+ # The actual build happens with Go 1.11, but local build fails with 1.11,
+ # so we use 1.12 as the best working approximation.
+ GO111MODULE=off go1.12 install ./dashboard/app
+endif
$(GO) test -short -coverprofile=.coverage.txt ./dashboard/app ./pkg/csource ./pkg/cover
presubmit_race: descriptions