This is a related item to my question earlier about CommandBox installing TestBox into the /lib folder.
Has anyone had any experience trying to integration CommandBox/ForgeBox with Travis-CI?
Specifically, I used CommandBox to install TestBox 2.0. Running my tests locally works correctly (after I manually moved the TestBox folder to /lib). However, I had added /lib/testbox to my .gitignore file which means that when Travis-CI clones my repo from GitHub, it doesn’t get the TestBox files (as they are provided by ‘box install’).
Curious if anyone had been down this road. It’s not super critical that the Travis-CI is hooked up to this repo, but I thought it would be a good exercise to “do things right” end-to-end.
Thanks
Dan
Dan, getting native Travis CI support for CFML would be sweet. I put in this ticket: COMMANDBOX-110 to look into it.
Basically, Travis CI has a bunch of built-in support for other languages:
http://docs.travis-ci.com/user/languages/
that does the same thing building the project with a package manager and then running tests. It would be sweet for people to be able to automatically build their CFML projects with Travis CI running:
box install
box server start
box testbox run
I think this would be something great for the community to help work on. Feel free to post ideas, or suggestions on the JIRA ticket.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com
Thanks for adding that to the list of things to check into.
The way that Marcin has set things up with the “grid” approach to testing multiple versions of Railo and ACF, I’d want to make sure that you didn’t have to do the ‘server start’ and ‘testbox run’ if you didn’t want to. The work that he’s done covers spinning up the correct CFML engine for the specific test and launching the task runner. I think the only piece that’s missing in my current attempt is being able to run ‘box install’ and get the dependencies installed.
Thanks for the feedback. I think there’s a bit of overlap in functionality probably since our goal with CommandBox is to have it support multiple engine/versions:
box start engine=“cf9”
box start engine=“cf11”
box start engine=“Railo4”
I was originally thinking CommandBox could just handle spinning up the correct server for you. If you specified your engine in the box.json in theory it could use that automatically.
I pinged the Travis CI guys and they are open to having official CFML support, but they would want someone from our community to build and maintain the implementation. Since Marcin has done so much, I’m curious if he’d help submit official CFML support for Travis CI.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com