Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4
5 export DH_GOLANG_EXCLUDES := benchautogen
6
7 %:
8 dh $@ --builddirectory=_build --buildsystem=golang --with=golang
9
10 override_dh_auto_install:
11 dh_auto_install -O--builddirectory=_build -O--buildsystem=golang
12 find
13 rm -f debian/golang-gonum-v1-gonum-dev/usr/share/gocode/src/gonum.org/v1/gonum/graph/formats/dot/testdata/.gitignore
14 rm -f debian/golang-gonum-v1-gonum-dev/usr/share/gocode/src/gonum.org/v1/gonum/graph/layout/testdata/.gitignore
15 rm -f debian/golang-gonum-v1-gonum-dev/usr/share/gocode/src/gonum.org/v1/gonum/graph/formats/cytoscapejs/testdata/LICENSE
16 rm -f debian/golang-gonum-v1-gonum-dev/usr/share/gocode/src/gonum.org/v1/gonum/graph/formats/sigmajs/testdata/LICENSE.txt
17 rm -f debian/golang-gonum-v1-gonum-dev/usr/share/gocode/src/gonum.org/v1/gonum/graph/path/testdata/flow/README
18
19 # Some slower architectures (armel, i386, riscv64) take a _very_ long time to run the tests.
20 # While the i386 tests pass on the buildds, autopkgtests on ci.d.n are exceeding the default
21 # timeout of 10,000 seconds. As we can't enable a per-package timeout (see #970675) and per
22 # https://wiki.debian.org/ContinuousIntegration/AutopkgtestBestPractices, we skip tests for
23 # i386 for the time being. (armel and armhf are 32bit architectures that successfully pass.)
24 # Additionally, upstream has declared that some architectures are unsupported (see
25 # https://github.com/gonum/gonum/issues/1751 and https://github.com/gonum/gonum/issues/1873),
26 # so we skip running tests on ppc64el, riscv64, and s390x.
27 override_dh_auto_test:
28 ifneq ($(DEB_HOST_ARCH),i386)
29 ifneq ($(DEB_HOST_ARCH),ppc64el)
30 ifneq ($(DEB_HOST_ARCH),riscv64)
31 ifneq ($(DEB_HOST_ARCH),s390x)
32 dh_auto_test -- -timeout 150m
33 endif
34 endif
35 endif
36 endif