marcins/cfml-ci — pull request #9 by Lampei (2014-01-09 17:49:56+00:00)
Title: Develop

I've created windows batch files for all of the shell scripts. I've added some logic for the "osfamily" so that ANT knows which scripts to run. I added a check for whether the server is running or not, and if not it tries to start the server. I added a "clean" task that removes the work.dir, then does the install, and tests. I had to modify some of the paths for the windows items to work (such as in the mxunit task), but I wasn't sure how this would affect the *nix version of this as I don't have a mac or linux machine to test on. I added a item to the start server task so that it will wait for the server to come up before moving on to whatever task is next. Currently I only did this for railo as that seemed to easiest (with their "railo-express" downloadable package), but it's a start for the ACF versions. From my testing, everything appears to work in the build script (clean, auto download, start server, run tests, stop server). Hopefully I've made everything as generic as possible so that it won't affect the *nix versions, but let me know if there's something that's wonky and I'll check it out.
Thanks.