File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ TEST_DIRS ?= $(shell sh -c "find $(TOP_SRC_DIRS) -name \\*_test.go \
34
34
-exec dirname {} \\; | sort | uniq")
35
35
VERSION ?= $(shell git describe --always --abbrev=7 --dirty)
36
36
BUILD_LDFLAGS = $(shell build/version.sh $(ROOT ) $(SC_PKG ) )
37
+ GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
38
+
39
+ # Only skip the verification of external href's if we're not on 'master'
40
+ SKIP_HTTP =-x
41
+ ifeq ($(GIT_BRANCH ) ,master)
42
+ SKIP_HTTP =
43
+ endif
37
44
38
45
# Run stat against /dev/null and check if it has any stdout output.
39
46
# If stdout is blank, we are detecting bsd-stat because stat it has
@@ -237,7 +244,7 @@ verify: .init .generate_files verify-client-gen
237
244
@rm .out
238
245
@#
239
246
@echo Running href checker:
240
- @$(DOCKER_CMD ) verify-links.sh -t .
247
+ @$(DOCKER_CMD ) verify-links.sh -t $( SKIP_HTTP ) .
241
248
@echo Running errexit checker:
242
249
@$(DOCKER_CMD ) build/verify-errexit.sh
243
250
You can’t perform that action at this time.
0 commit comments