New script for uploading builds easily to the test

More
28 Mar 2015 14:29 - 07 May 2016 17:38 #30367 by PhracturedBlue
I have released a script that makes it easy for developers to upload builds to the Test Build section.
This script is only available to developers. If you provide test-builds, and do not have access, please PM me.
The script can be found here: www.deviationtx.com/downloads-new/category/64-developer-tools
Look for 'upload_test_build.pl'

Download the script and make it executable. You will need to have:
a) a git repository
b) curl
c) perl

Before beginning, create a file in your repo directory: <repo>/.git/deviationtx
Place your forum username on the 1st line and your forum password on the 2nd line. Restrict permissions as desired (because this file is in the .git directory, you don't need to worry about it being accidentally checked in unless you share the metadata (which you shouldn't)

Now you can run:
cd <repo>
upload_test_build.pl -title "Category Name" -description "Long description or txt file" file1.zip file2.zip ...

(Only zip files are allowed)
It will create a new category in the 'Test Build' section and upload your files there.The description uses HTML (not BBCode) markup

You can remove a category and all files within it via:
upload_test_build.pl -title "Category Name" -delete

Note that your username is automatically appended to the category name so it isn't possible for you to conflict with another user. The script also automatically checks for updated versions each time it is run so that any changes are pushed to all users.

I hope you find the script useful. Please let me know if you have any issues.
Last edit: 07 May 2016 17:38 by PhracturedBlue. Reason: HG -> Git

Please Log in or Create an account to join the conversation.

More
28 Mar 2015 15:06 #30371 by Indigo
Thank you PB, I'll try this with my next test build. :woohoo:

Please Log in or Create an account to join the conversation.

More
05 May 2015 15:34 - 05 May 2015 15:35 #32114 by vlad_vy
I can't find the script.
Last edit: 05 May 2015 15:35 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
05 May 2015 16:07 #32118 by PhracturedBlue
Replied by PhracturedBlue on topic New script for uploading builds easily to the test
You should be able to see it now. Let me know if you still have issues

Please Log in or Create an account to join the conversation.

More
10 May 2015 10:06 #32334 by goebish
I can't find the script either, should I be added to the devs list or something ?

Please Log in or Create an account to join the conversation.

More
11 May 2015 09:13 #32383 by goebish
Thanks PB, I just uploaded test builds for EAchine 3D X4 and CG023 using a nrf24l01 thanks to victzh XN297 emulation layer.

Please Log in or Create an account to join the conversation.

More
14 May 2015 17:38 - 14 May 2015 18:18 #32564 by goebish
Can I delete files from a test build category ?

I thought uploading files with the same name would overwrite (update) the previous ones, but looks like it's not the case.
www.deviationtx.com/downloads-new/catego...-cg023-nrf24l01-test

edit: I think there's a bug, sometime they are updated, sometime duplicated.
Last edit: 14 May 2015 18:18 by goebish.

Please Log in or Create an account to join the conversation.

More
08 May 2016 21:11 #48072 by TheSFReader
Replied by TheSFReader on topic New script for uploading builds easily to the test
Just a fex things I found out during the uploads :
1) description is now a file which name is added instead of a string
2) If your building environment is docker, the script won't work out of the bow from a "native" shell, but should be launched from the "docker" shell instead, with a ./striptname.pl args etc.

Please Log in or Create an account to join the conversation.

Time to create page: 0.038 seconds
Powered by Kunena Forum