diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-10-05 06:15:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-05 06:15:28 -0700 |
commit | a4a6f7dac2364fc4215a9b0b12d54fccac623903 (patch) | |
tree | d870d7352ebcc82e953e96514a7c19448cf65f10 /contrib/cirrus/unit_test.sh | |
parent | 094b8b73505cb084d632ebb08e2a014e68f5e1b1 (diff) | |
parent | c53163b75a698af3d3bd5305efb2610f4bb7880b (diff) | |
download | podman-a4a6f7dac2364fc4215a9b0b12d54fccac623903.tar.gz podman-a4a6f7dac2364fc4215a9b0b12d54fccac623903.tar.bz2 podman-a4a6f7dac2364fc4215a9b0b12d54fccac623903.zip |
Merge pull request #1518 from cevich/cirrus-ci
Add cirrus-ci: eventual replacement for papr and travis
Diffstat (limited to 'contrib/cirrus/unit_test.sh')
-rwxr-xr-x | contrib/cirrus/unit_test.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/cirrus/unit_test.sh b/contrib/cirrus/unit_test.sh new file mode 100755 index 000000000..cacc23045 --- /dev/null +++ b/contrib/cirrus/unit_test.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +set -e +source $(dirname $0)/lib.sh + +req_env_var " +GOSRC $GOSRC +OS_RELEASE_ID $OS_RELEASE_ID +OS_RELEASE_VER $OS_RELEASE_VER +" + +show_env_vars + +set -x +cd "$GOSRC" +case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in + ubuntu-18) + make localunit "BUILDTAGS=$BUILDTAGS" + make "BUILDTAGS=$BUILDTAGS" + ;; + fedora-28) + make localunit + make + ;; + centos-7) ;& # Continue to the next item + rhel-7) + stub 'unit testing not working on $OS_RELEASE_ID' + ;; + *) bad_os_id_ver ;; +esac |