Skip to content

Commit 98be28a

Browse files
retragerbradford
authored andcommitted
CI: Run CI integration tests in parallel
Signed-off-by: Akira Moroo <retrage01@gmail.com>
1 parent 4d7d8c2 commit 98be28a

File tree

1 file changed

+52
-26
lines changed

1 file changed

+52
-26
lines changed

Jenkinsfile

+52-26
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,62 @@
11
pipeline {
22
agent none
33
stages {
4-
stage ("Worker build") {
5-
agent { node { label 'focal-fw' } }
6-
options {
7-
timeout(time: 1, unit: 'HOURS')
8-
}
9-
10-
stages {
11-
stage ('Checkout') {
12-
steps {
13-
checkout scm
4+
stage ('Build') {
5+
parallel {
6+
stage ('CH/QEMU Tests') {
7+
agent { node { label 'focal-fw' } }
8+
options {
9+
timeout(time: 1, unit: 'HOURS')
1410
}
15-
}
16-
stage ('Install system packages') {
17-
steps {
18-
sh "sudo apt-get -y install build-essential mtools qemu-system-x86 libssl-dev pkg-config m4 bison flex zlib1g-dev"
11+
stages {
12+
stage ('Checkout') {
13+
steps {
14+
checkout scm
15+
}
16+
}
17+
stage ('Install system packages') {
18+
steps {
19+
sh "sudo apt-get -y install build-essential mtools qemu-system-x86 libssl-dev pkg-config"
20+
}
21+
}
22+
stage ('Install Rust') {
23+
steps {
24+
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
25+
}
26+
}
27+
stage('Run integration tests') {
28+
steps {
29+
sh "./run_integration_tests.sh"
30+
}
31+
}
1932
}
2033
}
21-
stage ('Install Rust') {
22-
steps {
23-
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
34+
stage ('coreboot QEMU Tests') {
35+
agent { node { label 'focal-fw' } }
36+
options {
37+
timeout(time: 1, unit: 'HOURS')
2438
}
25-
}
26-
stage ('Run integration tests') {
27-
steps {
28-
sh "./run_integration_tests.sh"
29-
}
30-
}
31-
stage ('Run coreboot integration tests') {
32-
steps {
33-
sh "./run_coreboot_integration_tests.sh"
39+
stages {
40+
stage ('Checkout') {
41+
steps {
42+
checkout scm
43+
}
44+
}
45+
stage ('Install system packages') {
46+
steps {
47+
sh "sudo apt-get -y install build-essential mtools qemu-system-x86 libssl-dev pkg-config m4 bison flex zlib1g-dev"
48+
}
49+
}
50+
stage ('Install Rust') {
51+
steps {
52+
sh "nohup curl https://sh.rustup.rs -sSf | sh -s -- -y"
53+
}
54+
}
55+
stage('Run integration tests') {
56+
steps {
57+
sh "./run_coreboot_integration_tests.sh"
58+
}
59+
}
3460
}
3561
}
3662
}

0 commit comments

Comments
 (0)