diff mbox series

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

Message ID 20180227151138.12937-2-aconole@redhat.com
State Accepted
Headers show
Series [ovs-dev,1/2] selinux: drop autogenerated files | expand

Commit Message

Aaron Conole Feb. 27, 2018, 3:11 p.m. UTC
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@redhat.com>
---
 .travis.yml            | 1 +
 .travis/linux-build.sh | 2 ++
 2 files changed, 3 insertions(+)

Comments

Ben Pfaff Feb. 28, 2018, 9:13 p.m. UTC | #1
On Tue, Feb 27, 2018 at 10:11:38AM -0500, Aaron Conole wrote:
> 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@redhat.com>

I applied these to master, thanks!
diff mbox series

Patch

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