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)