qbicsoftware / cookiecutter-templates-cli

Collection of cookiecutter templates to generate new portlets, libraries, utilities, etc., using our parent POM structure.
3 stars 0 forks source link

Make travis builds verbose without having to edit .travis.yml files #22

Open chahuistle opened 6 years ago

chahuistle commented 6 years ago

It is possible to define variables on Travis CI without editing .travis.yml. A useful feature to troubleshoot erroring builds would would be to be able to rerun a build in "debug mode" without having to edit any files.

chahuistle commented 6 years ago

I guess the Maven command would look like mvn $MAVEN_EXTRA_OPTS ... and somewhere in .travis.yml, probably at the before_install, we could read/set the variable:

before_install: if [ "$MAVEN_EXTRA_OPTS" = ""]  then
                   export MAVEN_EXTRA_OPTS="--quiet";
                fi;

And we could set MAVEN_EXTRA_OPTS using Travis CI's UI to --debug.

Of course, we have to edit .travis.yml to implement this feature.