From bdd7dce31f8aa7151adaa0942b16330ee094a203 Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Tue, 23 Apr 2019 09:44:48 +0800 Subject: [PATCH] Add OpenLab CI configuration This patch adds the OpenLab CI configuration to enable the support for arm build in OpenLab. After this, each pull request in containerd will trigger the containerd-arm64-build job which verified the arm build on OpenLab ARM cluster. Related: https://github.com/containerd/containerd/issues/2901 Signed-off-by: Yikun Jiang --- .zuul.yaml | 14 ++++++++++++++ .zuul/playbooks/containerd-build/run.yaml | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .zuul.yaml create mode 100644 .zuul/playbooks/containerd-build/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 000000000..ad513f6fd --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,14 @@ +- project: + name: containerd/containerd + check: + jobs: + - containerd-build-arm64 + +- job: + name: containerd-build-arm64 + parent: init-test + description: | + Containerd build in openlab cluster. + run: .zuul/playbooks/containerd-build/run.yaml + nodeset: ubuntu-xenial-arm64 + voting: false diff --git a/.zuul/playbooks/containerd-build/run.yaml b/.zuul/playbooks/containerd-build/run.yaml new file mode 100644 index 000000000..b436df204 --- /dev/null +++ b/.zuul/playbooks/containerd-build/run.yaml @@ -0,0 +1,20 @@ +- hosts: all + become: yes + roles: + - role: config-golang + arch: arm64 + tasks: + - name: Build containerd + shell: + cmd: | + set -xe + apt-get update + apt-get install -y btrfs-tools libseccomp-dev git pkg-config + + make | tee $LOGS_PATH/make.txt + make test | tee $LOGS_PATH/make_test.txt + + cp -r ./bin $RESULTS_PATH + chdir: '{{ zuul.project.src_dir }}' + executable: /bin/bash + environment: '{{ global_env }}'