From 3dd5359ce7014b02eaaa2933061c8b2210a42a49 Mon Sep 17 00:00:00 2001 From: Alban Crequy Date: Thu, 15 Mar 2018 16:05:53 +0100 Subject: [PATCH] Add CircleCI for runtime-tools' validation tests I use CircleCI in order to run the runtime-tools' validation tests in a virtual machine. For now, the results of the tests are printed without returning an error. Signed-off-by: Alban Crequy --- .circleci/config.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000000..a7e765e78b4 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,26 @@ +version: 2 +jobs: + build: + machine: true + + working_directory: /home/circleci/.go_workspace/src/github.com/opencontainers/runc + steps: + - checkout + + # Before building runc + - run: sudo apt-get -qq update + - run: sudo apt-get install -y libseccomp-dev/trusty-backports + - run: go get -u github.com/golang/lint/golint + - run: go get -u github.com/vbatts/git-validation + + # Build and install runc + - run: make BUILDTAGS="seccomp apparmor selinux ambient" + - run: sudo cp ./runc /bin/runc + + # Install and run runtime-tools' validation tests + - run: npm install -g tap + - run: go get -d github.com/opencontainers/runtime-tools || true + - run: cd /home/circleci/.go_workspace/src/github.com/opencontainers/runtime-tools && + make && + sudo PATH=$PATH:$(dirname $(which node)) TAP=$(which tap) RUNTIME=runc make localvalidation || + true # All tests don't pass yet. For now, only display results without returning an error.