mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-30 07:33:37 +02:00

The "boot_aggregate.test" requires either a hardware or software TPM. Support using the swtpm, if packaged for the distro, in addition to tpm_server. Note: Some travis/<distro>.sh scripts are links to other scripts. Don't fail the build of the linked script if the swtpm package doesn't exist. Signed-off-by: Mimi Zohar <zohar@linux.ibm.com> Reviewed-by: Petr Vorel <pvorel@suse.cz> Acked-by: Bruno Meneguele <bmeneg@redhat.com>
79 lines
2.2 KiB
YAML
79 lines
2.2 KiB
YAML
dist: bionic
|
|
language: C
|
|
services:
|
|
- docker
|
|
|
|
matrix:
|
|
include:
|
|
# 32 bit build
|
|
- os: linux
|
|
env: DISTRO=debian:stable VARIANT=i386 ARCH=i386 TSS=tpm2-tss
|
|
compiler: gcc
|
|
|
|
# cross compilation builds
|
|
- os: linux
|
|
env: DISTRO=debian:stable VARIANT=cross-compile ARCH=ppc64el TSS=ibmtss
|
|
compiler: powerpc64le-linux-gnu-gcc
|
|
|
|
- os: linux
|
|
env: DISTRO=debian:stable VARIANT=cross-compile ARCH=arm64 TSS=tpm2-tss
|
|
compiler: aarch64-linux-gnu-gcc
|
|
|
|
- os: linux
|
|
env: DISTRO=debian:stable VARIANT=cross-compile ARCH=s390x TSS=ibmtss
|
|
compiler: s390x-linux-gnu-gcc
|
|
|
|
# musl
|
|
- os: linux
|
|
env: DISTRO=alpine:latest TSS=tpm2-tss
|
|
compiler: gcc
|
|
|
|
# glibc (gcc/clang)
|
|
- os: linux
|
|
env: DISTRO=opensuse/tumbleweed TSS=ibmtss
|
|
compiler: clang
|
|
|
|
- os: linux
|
|
env: DISTRO=opensuse/leap TSS=tpm2-tss
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
env: DISTRO=ubuntu:eoan TSS=ibmtss
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
env: DISTRO=ubuntu:xenial TSS=tpm2-tss
|
|
compiler: clang
|
|
|
|
- os: linux
|
|
env: DISTRO=fedora:latest TSS=ibmtss
|
|
compiler: clang
|
|
|
|
- os: linux
|
|
env: DISTRO=centos:7 TSS=tpm2-tss
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
env: DISTRO=centos:latest TSS=tpm2-tss
|
|
compiler: clang
|
|
|
|
- os: linux
|
|
env: DISTRO=debian:testing TSS=tpm2-tss
|
|
compiler: clang
|
|
|
|
- os: linux
|
|
env: DISTRO=debian:stable TSS=ibmtss
|
|
compiler: gcc
|
|
|
|
before_install:
|
|
- df -hT
|
|
- DIR="/usr/src/ima-evm-utils"
|
|
- printf "FROM $DISTRO\nRUN mkdir -p $DIR\nWORKDIR $DIR\nCOPY . $DIR\n" > Dockerfile
|
|
- cat Dockerfile
|
|
- docker build -t ima-evm-utils .
|
|
|
|
script:
|
|
- INSTALL="${DISTRO%%:*}"
|
|
- INSTALL="${INSTALL%%/*}"
|
|
- docker run -t ima-evm-utils /bin/sh -c "cd travis && if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./$INSTALL.$VARIANT.sh; fi && ARCH=\"$ARCH\" CC=\"$CC\" TSS=\"$TSS\" ./$INSTALL.sh && if [ ! \"$VARIANT\" ]; then which tpm_server || which swtpm || ../tests/install-swtpm.sh; fi && CC=\"$CC\" VARIANT=\"$VARIANT\" ../build.sh"
|