~chunsang/ubuntu-push/ubuntu-push-xenial64

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bileto Bot
  • Author(s): Arthur Mello
  • Date: 2016-07-18 13:26:52 UTC
  • mfrom: (162.3.7 ubuntu-push-fix_tests)
  • Revision ID: ci-train-bot@canonical.com-20160718132652-o9c7jh9d7d18j1m5
Mark helper as done only once we have sent the output so to order things

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
export UBUNTU_PUSH_TEST_RESOURCES_ROOT := $(CURDIR)
6
6
 
7
7
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
8
# Skip tests on the archs they are known to be flaky with current configuration
 
9
testskip_architectures := powerpc s390x
8
10
 
9
11
ifneq (,$(filter $(DEB_HOST_ARCH), arm64 powerpc ppc64el s390x))
10
12
  pkg_configs = ubuntuoneauth-2.0 libaccounts-glib click-0.4 ubuntu-app-launch-2 url-dispatcher-1 messaging-menu dbus-1 libnih libnih-dbus glib-2.0 gobject-2.0
26
28
        (cd signing-helper && cmake . && make)
27
29
 
28
30
override_dh_auto_test:
29
 
        GODEBUG=cgocheck=0 dh_auto_test -O--buildsystem=golang
 
31
ifneq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(testskip_architectures)))
 
32
        cd $$( find ./ -type d -regex '\./[^/]*/src/launchpad.net' -printf "%h\n" | head -n1) && \
 
33
        env GODEBUG=cgocheck=0 GOPATH=$$(cd ..; pwd) go test -v $$(env GOPATH=$$(cd ..; pwd) go list $(DH_GOPKG)/... | grep -v acceptance | grep -v http13client )
 
34
endif
30
35
 
31
36
override_dh_install:
32
37
        dh_install -Xusr/bin/cmd --fail-missing