[ovs-dev] [PATCH 2/2] travis: build the selinux policy under linux

Aaron Conole aconole at redhat.com
Tue Feb 27 15:11:38 UTC 2018


When performing a linux build, create the selinux policy.  This
ensures that the selinux policy files are at least 'compile' tested
when changes occur.

Signed-off-by: Aaron Conole <aconole at redhat.com>
---
 .travis.yml            | 1 +
 .travis/linux-build.sh | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index ef907caea..cf37e8c2b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -18,6 +18,7 @@ addons:
       - libnuma-dev
       - python-sphinx
       - libelf-dev
+      - selinux-policy-dev
 
 before_install: ./.travis/${TRAVIS_OS_NAME}-prepare.sh
 
diff --git a/.travis/linux-build.sh b/.travis/linux-build.sh
index 8fd9aa0f1..ee615c9ad 100755
--- a/.travis/linux-build.sh
+++ b/.travis/linux-build.sh
@@ -98,6 +98,8 @@ fi
 
 configure_ovs $EXTRA_OPTS $*
 
+make selinux-policy
+
 # Only build datapath if we are testing kernel w/o running testsuite
 if [ "$KERNEL" ] && [ ! "$TESTSUITE" ] && [ ! "$DPDK" ]; then
     cd datapath
-- 
2.14.3



More information about the dev mailing list