Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

balena-deploy: Set leviathan networkWireless mode based on device slug #253

Merged
1 commit merged into from Dec 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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