Skip to content

Commit

Permalink
balena-deploy: Set leviathan networkWireless mode based on device slug
Browse files Browse the repository at this point in the history
These changes are currently made in the Jenkins job, so it's preferrable
to have it done by the packaging scripts.

Change-type: patch
Signed-off-by: Kyle Harding <kyle@balena.io>
  • Loading branch information
klutchell committed Dec 2, 2021
1 parent 2e8513f commit 891fadc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automation/include/balena-deploy.inc
Expand Up @@ -180,12 +180,14 @@ balena_deploy_artifacts () {
then
# if the device type is generic we need to use localhost workers
perl -i~ -0777 -pe "s/workers: ({|\[)[^}\]]+(}|\]),/workers: ['http:\/\/localhost'],/g" suites/config.js
perl -i~ -0777 -pe "s/networkWireless: [^,]+,/networkWireless: false,/g" suites/config.js
else
# otherwise we need to use testbot workers
perl -i~ -0777 -pe "s/workers: ({|\[)[^}\]]+(}|\]),/workers: {
balenaApplication: process.env.BALENA_CLOUD_APP_NAME,
apiKey: process.env.BALENA_CLOUD_API_KEY,
},/g" suites/config.js
perl -i~ -0777 -pe "s/networkWireless: [^,]+,/networkWireless: true,/g" suites/config.js
fi
fi
tar -czvf "$_deploy_dir/tests.tar.gz" .
Expand Down

0 comments on commit 891fadc

Please sign in to comment.