.travis.yml: Use git tag instead of release tarball for selinux userspace.

This commit is contained in:
Chris PeBenito 2017-08-06 18:48:45 -04:00
parent efa32d9b56
commit 8067ed0181
1 changed files with 4 additions and 2 deletions

View File

@ -58,14 +58,16 @@ before_install:
- python -V
install:
- SELINUX_USERSPACE_VERSION=20170804
- SELINUX_USERSPACE_VERSION=libsepol-2.7
- export DESTDIR="${TRAVIS_BUILD_DIR}/selinux"
- export EXPLICIT_MAKE_VARS="CFLAGS=-I$DESTDIR/usr/include LDFLAGS=-L$DESTDIR/usr/lib LDLIBS= CPPFLAGS= OPT_SUBDIRS=semodule-utils"
- |
if [[ "${SELINUX_USERSPACE_VERSION}" != "$(cat ${TRAVIS_BUILD_DIR}/selinux/travis.version)" ]]; then
rm -fR selinux-src
# Download current SELinux userspace tools and libraries
curl -sS -L "https://github.com/SELinuxProject/selinux/archive/${SELINUX_USERSPACE_VERSION}.tar.gz" | tar xz
git clone https://github.com/SELinuxProject/selinux.git selinux-src -b ${SELINUX_USERSPACE_VERSION}
mv "selinux-${SELINUX_USERSPACE_VERSION}" selinux-src
# Drop secilc to break xmlto dependence (secilc isn't used here anyway)