Separate jobs for build and test for openlab/arm64
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
3dad67eedb
commit
2b0e6cdd42
10
.zuul.yaml
10
.zuul.yaml
@ -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
|
||||||
|
@ -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 }}'
|
||||||
|
20
.zuul/playbooks/containerd-build/unit-test.yaml
Normal file
20
.zuul/playbooks/containerd-build/unit-test.yaml
Normal 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 }}'
|
Loading…
Reference in New Issue
Block a user