diff --git a/.travis.yml b/.travis.yml index 0d1c66c6ef7..412ba7db42b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,4 +32,5 @@ before_install: script: - git-validation -run DCO,short-subject -v - make BUILDTAGS="${BUILDTAGS}" + - make BUILDTAGS="${BUILDTAGS}" oci-runtime-validation - make BUILDTAGS="${BUILDTAGS}" clean ci cross diff --git a/Makefile b/Makefile index d490a3f033b..4c935419001 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,9 @@ validate: script/validate-c $(GO) vet $(allpackages) +oci-runtime-validation: + RUNTIME=$(CURDIR)/runc script/oci-runtime-validation + ci: validate test release cross: runcimage diff --git a/script/oci-runtime-validation b/script/oci-runtime-validation new file mode 100755 index 00000000000..5f0c98a9798 --- /dev/null +++ b/script/oci-runtime-validation @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e +set -x + +# Install and run runtime-tools' validation tests +npm install -g tap +go get -d -u github.com/opencontainers/runtime-tools || true + +cd $GOPATH/src/github.com/opencontainers/runtime-tools +make +sudo PATH="$PATH:$(dirname $(which node))" TAP="$(which tap)" RUNTIME="${RUNTIME}" make localvalidation \ + || true # All tests don't pass yet. For now, only display results without returning an error. +