Travis CI is a cloud service. We can configure the build minimally via the web page (for example, a couple of environment variables and build triggers), and a few of us have access to the admin page. But that’s all.
Contrary to bamboo, which we host the server, agents, and we can install plugins.
@cintiadr , from these logs here, maven seems to consume the biggest part (Download logs) .And actualy the Maximum log length is exceeded before Travis attempting to run any single test.
So, one things we should probably do is to actually cache the m2 folder, the cache for maven, so it doesn’t have to download all dependencies on each build. Example.
You don’t seem to be doing that. You can try to run the tests in travis using ‘mvn -q’ for a few times, to download all dependencies to the cache, but I wouldn’t recommend you keep that flag as it suppress important errors.
You also want to have a ‘-B’ to your maven command.
Travis is not configured to cache maven .m2 folder. That seems like a good idea to speed the build and avoid too many logs due to downloading all dependencies.
It has some side effects when handling snapshots, so you might want to use -U too.
Btw @mozzy outside of the log length, I realise that this module has become a nightmare to build. Something must be wrong with its setup. All those npm related things are sneaking everywhere and make everything to take forever.
Thats very true @mksd, its really very hectic to build the core apps , it takes ages to build. any suggestions to solve that , could this be an issue to be tabled in the design call ??
I would at the very least set up build profiles for the build, example here on AH in a different context. There should be a profile that does the usual (so the Java build) and a profile that does everything. Something along those lines, what the default profile does will also have to be determined.
For instance here even if you run -DskipTests, all those npm tests are run anyway, this is wrong.