maint(common): add TC build scripts for keyboards 🪶#3604
Conversation
|
I decided to put the scripts for Keyboard builds in the |
Fixes: #14191 Part-of: #13399 Test-bot: skip
2dd5f76 to
0dad150
Compare
|
Will there be a teamcity script for the build step "Don't allow autobuild of external repo owner PRs"? |
|
I am holding off on this PR and the corresponding keymanapp/lexical-models#319 until I have found my feet again and other aspects of maintenance are reasonably stable. Hopefully next week. |
This has to stay in TeamCity for security reasons -- or run from a separate protected repo; it can't run from an arbitrary branch. |
| "--downloads-keyman-com=DOWNLOADS_KEYMAN_COM_URL URL of downloads server" \ | ||
| "--help-keyman-com=HELP_KEYMAN_COM Path to help.keyman.com repository" \ | ||
| "--s-keyman-com=S_KEYMAN_COM Path to s.keyman.com repository" \ | ||
| "--rsync-path=REMOTE_RSYNC_PATH Path to rsync on remote server" \ | ||
| "--rsync-dest=RSYNC_DEST Destination for rsync" |
There was a problem hiding this comment.
I presume these need to be exported so ci.sh can get to them
| } | ||
|
|
||
| function do_publish() { | ||
| _upload_to_downloads_keyman_com |
There was a problem hiding this comment.
We should verify that all parameters are set here (as in keymanapp/lexical-models#319 (comment))
| API_URL=$1 | ||
| URL="https://${API_URL}/_control/webhook/keyboards-build-success.json?token=${WEBHOOK_TOKEN}" | ||
| HTTPRESULT=$(curl --silent --write-out "\n\nHTTP status code: %{http_code}" "${URL}") | ||
| STATUSCODE=$(echo "${HTTPRESULT}" | tail -n1 | cut -d" " -f 4) |
There was a problem hiding this comment.
| API_URL=$1 | |
| URL="https://${API_URL}/_control/webhook/keyboards-build-success.json?token=${WEBHOOK_TOKEN}" | |
| HTTPRESULT=$(curl --silent --write-out "\n\nHTTP status code: %{http_code}" "${URL}") | |
| STATUSCODE=$(echo "${HTTPRESULT}" | tail -n1 | cut -d" " -f 4) | |
| local API_URL="$1" | |
| local URL="https://${API_URL}/_control/webhook/keyboards-build-success.json?token=${WEBHOOK_TOKEN}" | |
| local HTTPRESULT=$(curl --silent --write-out "\n\nHTTP status code: %{http_code}" "${URL}") | |
| local STATUSCODE=$(echo "${HTTPRESULT}" | tail -n1 | cut -d" " -f 4) |
Fixes: keymanapp/keyman#14191
Part-of: keymanapp/keyman#13399
Test-bot: skip