From 34b9b3c74ac5b10706e32142566a63c4d21d933e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 30 Sep 2021 14:16:24 +0200 Subject: Makefile: test appengine app build locally --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit mrf-deployment