add check to makefile to ensure windows builds dont fail silently
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Oct 22, 2015 at 10:22 UTC
8d6340268a51d423ebe1c32990e7d7467d2a458d
1 file changed
+6
-1
Makefile
+6
-1
@@ -34,7 +34,7 @@ nofuse:
34
##############################################################
35
# tests targets
36
37
-test: test_expensive
37
+test: test_expensive windows_build_check
38
39
test_short: build test_go_short test_sharness_short
40
@@ -71,3 +71,8 @@ test_all_commits_travis:
71
git config --global user.name "IPFS BOT"
72
git fetch origin master:master
73
GIT_EDITOR=true git rebase -i --exec "make test" master
74
+
75
+# since we have CI for osx and linux but not windows, this should help
76
+windows_build_check:
77
+ GOOS=windows GOARCH=amd64 go build -o .test.ipfs.exe -tags=nofuse ./cmd/ipfs
78
+ rm .test.ipfs.exe