Skip to content

Commit

Permalink
travis: build the selinux policy under linux
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
apconole authored and blp committed Feb 28, 2018
1 parent ef4da7c commit 6330f30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ addons:
- libnuma-dev
- python-sphinx
- libelf-dev
- selinux-policy-dev

before_install: ./.travis/${TRAVIS_OS_NAME}-prepare.sh

Expand Down
2 changes: 2 additions & 0 deletions .travis/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6330f30

Please sign in to comment.