mirror of https://github.com/ArduPilot/ardupilot
CI: added test of signed firmware builds
This commit is contained in:
parent
f899a47429
commit
ddf770330d
|
@ -30,7 +30,8 @@ jobs:
|
|||
MatekF405-Wing,
|
||||
CubeOrange-ODID,
|
||||
configure-all,
|
||||
build-options-defaults-test
|
||||
build-options-defaults-test,
|
||||
signing
|
||||
]
|
||||
toolchain: [
|
||||
chibios, # GCC-6
|
||||
|
@ -50,6 +51,8 @@ jobs:
|
|||
config: periph-build
|
||||
- gcc: 6
|
||||
config: CubeOrange-ODID
|
||||
- gcc: 6
|
||||
config: signing
|
||||
include:
|
||||
- config: stm32h7
|
||||
toolchain: chibios-py2
|
||||
|
|
|
@ -343,6 +343,21 @@ for t in $CI_BUILD_TARGET; do
|
|||
continue
|
||||
fi
|
||||
|
||||
if [ "$t" == "signing" ]; then
|
||||
echo "Building signed firmwares"
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python3-dev
|
||||
python3 -m pip install pymonocypher
|
||||
./Tools/scripts/signing/generate_keys.py testkey
|
||||
$waf configure --board CubeOrange-ODID --signed-fw --private-key testkey_private_key.dat
|
||||
$waf copter
|
||||
$waf configure --board MatekL431-DShot --signed-fw --private-key testkey_private_key.dat
|
||||
$waf AP_Periph
|
||||
./Tools/scripts/build_bootloaders.py --signing-key testkey_public_key.dat CubeOrange-ODID
|
||||
./Tools/scripts/build_bootloaders.py --signing-key testkey_public_key.dat MatekL431-DShot
|
||||
continue
|
||||
fi
|
||||
|
||||
if [ "$t" == "python-cleanliness" ]; then
|
||||
echo "Checking Python code cleanliness"
|
||||
./Tools/scripts/run_flake8.py
|
||||
|
|
Loading…
Reference in New Issue