debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | %: |
| 4 | dh $@ --builddirectory=_build --buildsystem=golang |
| 5 | |
| 6 | # Patch testscript/testscript.go and override dh-golang default GOPROXY=off |
| 7 | # to allow TestScripts/env_var_with_go and TestSimple/cover to PASS |
| 8 | override_dh_auto_test: |
| 9 | patch -N -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch |
| 10 | GOPROXY= dh_auto_test |
| 11 | patch -R -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch |