Skip to content

Commit 2b0e6cd

Browse files
committed
Separate jobs for build and test for openlab/arm64
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 3dad67e commit 2b0e6cd

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

.zuul.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
check:
55
jobs:
66
- containerd-build-arm64
7+
- containerd-test-arm64
78

89
- job:
910
name: containerd-build-arm64
@@ -13,3 +14,12 @@
1314
run: .zuul/playbooks/containerd-build/run.yaml
1415
nodeset: ubuntu-xenial-arm64-openlab
1516
voting: false
17+
18+
- job:
19+
name: containerd-test-arm64
20+
parent: init-test
21+
description: |
22+
Containerd unit tests in openlab cluster.
23+
run: .zuul/playbooks/containerd-build/unit-test.yaml
24+
nodeset: ubuntu-xenial-arm64-openlab
25+
voting: false

.zuul/playbooks/containerd-build/run.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
1616
go version
1717
make | tee $LOGS_PATH/make.txt
18-
make test | tee $LOGS_PATH/make_test.txt
1918
2019
cp -r ./bin $RESULTS_PATH
2120
chdir: '{{ zuul.project.src_dir }}'
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
- hosts: all
2+
become: yes
3+
roles:
4+
- role: config-golang
5+
go_version: '1.16.3'
6+
arch: arm64
7+
tasks:
8+
- name: Build and test containerd
9+
shell:
10+
cmd: |
11+
set -xe
12+
set -o pipefail
13+
apt-get update
14+
apt-get install -y btrfs-tools libseccomp-dev git pkg-config
15+
16+
go version
17+
make build test | tee $LOGS_PATH/make_test.txt
18+
chdir: '{{ zuul.project.src_dir }}'
19+
executable: /bin/bash
20+
environment: '{{ global_env }}'

0 commit comments

Comments
 (0)