From: cgzones@googlemail.com (=?UTF-8?q?Christian=20G=C3=B6ttsche?=) Date: Sun, 3 Sep 2017 18:54:08 +0200 Subject: [refpolicy] [PATCH] update travis Message-ID: <20170903165408.5414-1-cgzones@googlemail.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com - drop libustr-dev from package list, as the SELinux userland tools dropped this build dependency - switch to container based build environments - drop unnecessary make flags --- .travis.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.travis.yml b/.travis.yml index 837312b9..8d95783a 100755 --- a/.travis.yml +++ b/.travis.yml @@ -25,12 +25,7 @@ env: - TYPE=mls DISTRO=gentoo MONOLITHIC=y SYSTEMD=n WERROR=y - TYPE=mls DISTRO=gentoo MONOLITHIC=n SYSTEMD=n WERROR=y -# Uncomment to use Travis-CI container infrastructure (https://docs.travis-ci.com/user/ci-environment/) -#sudo: false -#dist: trusty # libustr-dev not whitelisted for trusty - -# Uncomment these two lines to use Travis-CI Trusty Beta environment -sudo: required +sudo: false dist: trusty cache: @@ -46,7 +41,6 @@ addons: - gettext - libaudit-dev - libbz2-dev - - libustr-dev - libpcre3-dev - swig @@ -61,7 +55,6 @@ install: - 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 @@ -83,9 +76,7 @@ install: sed -i -e 's/ sandbox//' selinux-src/policycoreutils/Makefile # Compile and install SELinux toolchain into ~/selinux - # On Ubuntu 12.04, default CFLAGS make the build fail in libsepol/cil with: - # error: declaration of 'index' shadows a global declarationo - make $EXPLICIT_MAKE_VARS -C selinux-src install + make OPT_SUBDIRS=semodule-utils -C selinux-src install echo "${SELINUX_USERSPACE_VERSION}" > "${TRAVIS_BUILD_DIR}/selinux/travis.version" fi -- 2.14.1