This is the link to my configuration script. And here is the latest failed build. I’m not sure what the problem is. I have verified that
build_script is indeed a job lifecycle, but I have tried three times now and I get the same failed build because the
build_script section is not being run.
I also know this should work because I have seen another project which uses a similar syntax and travis seems to be working for that project.
There is another issue on the github issues page that mentions something like this, but it seems they are actually talking about
So it looks like it’s not the case that
before_script is being skipped, but rather that travis decides to run
gradle assemble as the default install task if none is specified for a java project.
To fix this, I simply added an
install step which echoes the issue that led me to this conclusion:
install: - echo 'https://github.com/travis-ci/travis-ci/issues/8667'