diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 9de9cc7..3d57fd5 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,6 +1,6 @@ steps: - label: "build amd64 in docker" - key: build_docker + key: make_docker command: "make docker" agents: image: family/core-ubuntu-2204 @@ -10,6 +10,8 @@ steps: - label: "build amd64 in a centos7 container" key: make_centos7 command: "make centos7" + artifact_paths: + - "quark-test" agents: image: family/core-ubuntu-2204 provider: gcp @@ -22,3 +24,13 @@ steps: image: family/core-ubuntu-2204 provider: gcp machineType: n2-standard-2 + + - label: "quark-test" + key: test + command: "./.buildkite/runtest.sh" + depends_on: + - make_centos7 + agents: + image: family/core-ubuntu-2204 + provider: gcp + machineType: n2-standard-2 diff --git a/.buildkite/runtest.sh b/.buildkite/runtest.sh new file mode 100755 index 0000000..205bff9 --- /dev/null +++ b/.buildkite/runtest.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -euo pipefail + +function download { + buildkite-agent artifact download "$1" "$2" +} + +if [ -z "${BUILDKITE}" ]; then + echo "This script doesn't appear to be running in buildkite" 1>&2 + echo "refusing to continue" 1>&2 + exit 1 +fi + +download quark-test . +chmod +x quark-test + +sudo ./quark-test +exit $? diff --git a/Makefile b/Makefile index f31c2b1..ce95778 100644 --- a/Makefile +++ b/Makefile @@ -350,7 +350,7 @@ clean-all: clean $(call msg,CLEAN-ALL) $(Q)rm -f $(SVGS) $(Q)rm -rf include - $(Q)make -C $(LIBBPF_SRC) clean + $(Q)make -C $(LIBBPF_SRC) clean NO_PKG_CONFIG=y $(Q)make -C $(ELFTOOLCHAIN_SRC)/libelf clean $(Q)make -C $(ZLIB_SRC) clean || true