~abreu-alexandre/webbrowser-app/saml-redirection-patterns

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: CI Train Bot
  • Author(s): Olivier Tilloy
  • Date: 2016-04-08 17:06:49 UTC
  • mfrom: (1398.1.3 fix-ut-sbuild)
  • Revision ID: ci-train-bot@canonical.com-20160408170649-q5p9zjwurcb9nac5
Fix unit tests when run under an sbuild chroot. Fixes: #1567294

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
export DEB_BUILD_HARDENING=1
8
8
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
9
9
 
 
10
BUILDHOME=/tmp/home
 
11
 
10
12
%:
11
13
        dh $@ --parallel --with translations
12
14
 
32
34
        # Unfortunately, the default build directory is not exposed
33
35
        # (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=601774).
34
36
        $(MAKE) -C obj-$(DEB_HOST_GNU_TYPE) webbrowser-app.pot
 
37
 
 
38
override_dh_clean:
 
39
        dh_clean
 
40
        rm -rf $(BUILDHOME)
 
41
 
 
42
override_dh_auto_test:
 
43
        mkdir -p $(BUILDHOME)
 
44
        HOME=$(BUILDHOME) dh_auto_test
 
45