Hey guys, I’m trying to decipher what to do for this to work for my ridiculous addon collection too; I got it working for some simple addons, but it seems to ignore each example’s config.make (which I need for addons that depend on other addons, or addons that require some macros defined).
Looking through the travis logs, I think I found the issue, but not really sure where to solve.
For example, I am trying to compile the example of this addon with a pre-processor macro defined in config.make; as seen here
But it seems the definition is ignored. Looking at the logs, I see this entry
cat: obj/linux64/Debug/.compiler_flags: No such file or directory
Complete Log Here
and looking through the makefile related scripts in OF, it seems the “.compiler_flags” are saved to disk into a file with that name at some point. Might me a simple case of the filed being saved in the wrong dir; but I really can’t keep up with the working dir changes all over the nested scripts… But of course, if the file is not there, the compiler flags are lost.
Also, I wonder if the OF scripts in “OF/scripts/ci/addons” should look at “addon_config.mk” and clone automatically any dependencies (although where to clone them from is a bit of a long shot, I could see some sort of scapper of addon_config.mk files to build an index addon urls by name); or maybe forcing the addon_config.mk to add a URL for each addon dependency… Or maybe based on “addons.make” for each example; there seem to be quite a few places where this can be defined and its a bit confusing to read which one does what (I know some are for PG, but maybe they could be consolidated)
I like what bakercp has done in his addon/scripts/ci/install.sh script install.sh and it should maybe be added in the ofxAddonTemplate bc the instructions in the .travis.yml file are quite vague travis.yml. Maybe there can be a install.sh that is a user-driven script, and some other plain text file like “addons.make” where you just input repo URLs for other addons?
Another thing that I am seeing is that the OSX ci tests seem to hang forever; but they don’t even start. Are you also seeing those?
Sorry for this messy post, and thanks for working on this guys!