Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Tool to easily deploy code, for non-programmers (http://www.chiefdelphi.com/forums/showthread.php?t=110363)

Michael_Lee 03-01-2013 05:08

Tool to easily deploy code, for non-programmers
 
This is sort of a follow-up from this post:
http://www.chiefdelphi.com/forums/sh...d.php?t=110219

So, several of our non-programmers had difficulty learning how to compile and deploy code to the robot. I decided to try writing a small program that tries to simplify compiling and deploying code as much as possible.

It basically downloads the latest source code from an SVN repository (or if there's a folder called "source" in the same folder as the exe, it uses the code from that instead), compiles it, configures the ip address of the computer, and transfers the compiled program via ftp to the robot.

I tried to make it as simple as possible: once you set up the options, it should just be a matter of opening the program and clicking a single button.

Limitations:
It's for C++ only, and any computer that uses this needs to have WindRiver installed. It also only works on Windows. It's set up to download code from an SVN repository only, since that's what my team uses, but you can circumvent that by placing your source code inside a folder called "source", as I stated above.

The source code also needs to be a WindRiver project (it has the `.wrmakefile` files in it and such).

I'm still in the process of testing it, but I thought I'd post what I have now in case somebody finds it useful. Feedback is appreciated!

Link: (source code and exe included)
http://www.filedropper.com/one-click-deployr4

Racer26 03-01-2013 09:19

Re: Tool to easily deploy code, for non-programmers
 
Seems unnecessary.

Once your programming laptop is set up, its just a matter of going to FIRST>Deploy (or whatever that option is called) in WindRiver. Its ALREADY a two-click solution.

nathan_hui 03-01-2013 11:29

Re: Tool to easily deploy code, for non-programmers
 
True, except for the programmers who've got multiple projects lying around (on the hard drive) and we mechies have no idea which project is what or even that we're deploying the right version of code. Especially when our team has the software guys write test/utility code separately from the main code to test our systems.

F22Rapture 03-01-2013 12:08

Re: Tool to easily deploy code, for non-programmers
 
Quote:

Originally Posted by 1075guy (Post 1206884)
Seems unnecessary.

Once your programming laptop is set up, its just a matter of going to FIRST>Deploy (or whatever that option is called) in WindRiver. Its ALREADY a two-click solution.

Same with Java, though I use git bash anyway.

nightpool 11-01-2013 13:37

Re: Tool to easily deploy code, for non-programmers
 
Quote:

Originally Posted by nathan_hui (Post 1206912)
True, except for the programmers who've got multiple projects lying around (on the hard drive) and we mechies have no idea which project is what or even that we're deploying the right version of code. Especially when our team has the software guys write test/utility code separately from the main code to test our systems.

Then that's a different problem, and one that won't be solved by any number of "simple programs" or gui solutions. This program that he wrote still requires you to know which code base you want to deploy. Why are non-programers deploying code anyway? Any code that non-programmers would need to use should already be on the bot (and if its not there's probably something wrong anyway.)

nathan_hui 12-01-2013 18:57

Re: Tool to easily deploy code, for non-programmers
 
We actually have our software team split up into subsystem teams, who write multiple pieces of code (hardware test code, prototype code, subsystem code, and manual diagnostic code). Unless there is a way of maintaining multiple programs on the cRIO (which I'm not aware there is, unless you write a big umbrella program as a program chooser, or maybe there is)... And we had a naming scheme for the projects and we're finally doing documentation (last I checked, which was a while ago), so non-programmers (and programmers from another system) know what's going on.


All times are GMT -5. The time now is 02:13.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi