summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2018-02-27 10:11:38 -0500
committerBen Pfaff <blp@ovn.org>2018-02-28 13:12:39 -0800
commit6330f30086f59c336bf82b30823532e5db8929d3 (patch)
treef76b62f98bb4968fbfa4def7b3bcdb227dfc97e9
parentef4da7cd9279ccb79f69196ec95de83037be100f (diff)
downloadopenvswitch-6330f30086f59c336bf82b30823532e5db8929d3.tar.gz
travis: build the selinux policy under linux
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> Signed-off-by: Ben Pfaff <blp@ovn.org>
-rw-r--r--.travis.yml1
-rwxr-xr-x.travis/linux-build.sh2
2 files changed, 3 insertions, 0 deletions
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