Skip to content

Commit 85b5a80

Browse files
committed
Test UNIVERSAL builds in Jenkins.
1 parent 737e228 commit 85b5a80

3 files changed

Lines changed: 20 additions & 4 deletions

File tree

Jenkinsfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ pipeline {
99
}
1010
}
1111
stage('Test HackRF One') {
12+
matrix {
13+
axes {
14+
axis {
15+
name 'BOARD'
16+
values 'HACKRF_ONE', 'UNIVERSAL'
17+
}
18+
}
19+
}
1220
agent {
1321
docker {
1422
image 'hackrf'
@@ -20,7 +28,7 @@ pipeline {
2028
}
2129
steps {
2230
sh './ci-scripts/install_host.sh'
23-
sh './ci-scripts/build_h1_firmware.sh'
31+
sh './ci-scripts/build_h1_firmware.sh ${BOARD}'
2432
script {
2533
try {
2634
// Allow 20 seconds for the USB hub port power server to respond
@@ -165,6 +173,14 @@ pipeline {
165173
}
166174
}
167175
stage('Test HackRF Pro') {
176+
matrix {
177+
axes {
178+
axis {
179+
name 'BOARD'
180+
values 'PRALINE', 'UNIVERSAL'
181+
}
182+
}
183+
}
168184
agent {
169185
docker {
170186
image 'hackrf'
@@ -176,7 +192,7 @@ pipeline {
176192
}
177193
steps {
178194
sh './ci-scripts/install_host.sh'
179-
sh './ci-scripts/build_hpro_firmware.sh'
195+
sh './ci-scripts/build_hpro_firmware.sh ${BOARD}'
180196
script {
181197
try {
182198
// Allow 20 seconds for the USB hub port power server to respond

ci-scripts/build_h1_firmware.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ git submodule init
44
git submodule update
55
cd firmware/hackrf_usb
66
rm -rf build
7-
cmake -DBOARD=HACKRF_ONE -B build
7+
cmake -DBOARD=$1 -B build
88
cmake --build build
99
cd ../..

ci-scripts/build_hpro_firmware.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ git submodule init
44
git submodule update
55
cd firmware/hackrf_usb
66
rm -rf build
7-
cmake -DBOARD=PRALINE -B build
7+
cmake -DBOARD=$1 -B build
88
cmake --build build
99
cd ../..

0 commit comments

Comments
 (0)