From 3b3e6f75d31e4c087da5504396a75b68fc155449 Mon Sep 17 00:00:00 2001 From: cgzones Date: Sat, 18 Mar 2017 14:32:24 +0100 Subject: [PATCH] travis: run make xml, html and install(-.*)? targets --- .travis.yml | 9 +++++++++ Makefile | 4 +++- support/policyvers.py | 9 ++++++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8b60ba327..ef0100690 100755 --- a/.travis.yml +++ b/.travis.yml @@ -102,3 +102,12 @@ script: - make conf - make - make validate + +after_success: + - make xml + - make html + - make DESTDIR=${HOME}/tmp install + - make DESTDIR=${HOME}/tmp install-headers + - make DESTDIR=${HOME}/tmp install-src + - make DESTDIR=${HOME}/tmp install-doc + - make DESTDIR=${HOME}/tmp install-appconfig diff --git a/Makefile b/Makefile index 0fa0c1be1..bfd09b8a2 100644 --- a/Makefile +++ b/Makefile @@ -558,7 +558,9 @@ install-docs: $(tmpdir)/html # install-src: rm -rf $(srcpath)/policy.old - -mv $(srcpath)/policy $(srcpath)/policy.old + if test -d $(srcpath)/policy; then \ + mv $(srcpath)/policy $(srcpath)/policy.old ;\ + fi mkdir -p $(srcpath)/policy cp -R . $(srcpath)/policy diff --git a/support/policyvers.py b/support/policyvers.py index 26e6f15c4..6e1c32216 100644 --- a/support/policyvers.py +++ b/support/policyvers.py @@ -1,6 +1,9 @@ #!/usr/bin/env python3 -import selinux +try: + import selinux -if selinux.is_selinux_enabled(): - print(selinux.security_policyvers()) + if selinux.is_selinux_enabled(): + print(selinux.security_policyvers()) +except ImportError: + exit(0)