Separate jobs for build and test for openlab/arm64

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
Davanum Srinivas 2021-04-22 07:10:24 -04:00
parent 3dad67eedb
commit 2b0e6cdd42
No known key found for this signature in database
GPG Key ID: 80D83A796103BF59
3 changed files with 30 additions and 1 deletions

View File

@ -4,6 +4,7 @@
check: check:
jobs: jobs:
- containerd-build-arm64 - containerd-build-arm64
- containerd-test-arm64
- job: - job:
name: containerd-build-arm64 name: containerd-build-arm64
@ -13,3 +14,12 @@
run: .zuul/playbooks/containerd-build/run.yaml run: .zuul/playbooks/containerd-build/run.yaml
nodeset: ubuntu-xenial-arm64-openlab nodeset: ubuntu-xenial-arm64-openlab
voting: false voting: false
- job:
name: containerd-test-arm64
parent: init-test
description: |
Containerd unit tests in openlab cluster.
run: .zuul/playbooks/containerd-build/unit-test.yaml
nodeset: ubuntu-xenial-arm64-openlab
voting: false

View File

@ -15,7 +15,6 @@
go version go version
make | tee $LOGS_PATH/make.txt make | tee $LOGS_PATH/make.txt
make test | tee $LOGS_PATH/make_test.txt
cp -r ./bin $RESULTS_PATH cp -r ./bin $RESULTS_PATH
chdir: '{{ zuul.project.src_dir }}' chdir: '{{ zuul.project.src_dir }}'

View File

@ -0,0 +1,20 @@
- hosts: all
become: yes
roles:
- role: config-golang
go_version: '1.16.3'
arch: arm64
tasks:
- name: Build and test containerd
shell:
cmd: |
set -xe
set -o pipefail
apt-get update
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
go version
make build test | tee $LOGS_PATH/make_test.txt
chdir: '{{ zuul.project.src_dir }}'
executable: /bin/bash
environment: '{{ global_env }}'