jbundler
jbundler copied to clipboard
Travis: Use openjdk9, oraclejdk9, openjdk8
This PR configures Travis build settings. 🛠️
Background
Example of failed build: https://travis-ci.org/github/mkristian/jbundler/jobs/642414727
I began, by appointing jdk
values which exist.
Solution
Try to use JDKs existing in Travis CI. ❓ I don't know which of these will be fine.
Also: Drop unused sudo: false
directive.
jdk | result | time to result |
---|---|---|
openjdk9 | can install, fails the Maven job | 1min30s |
oraclejdk9 | can install, fails the Maven job | 33s |
openjdk8 | can install | 38 min (3 retries which failed) |
$ ./mvnw install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
Downloading https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.1/apache-maven-3.3.1-bin.zip
........................................................................................................................................................................................................................................................................................................................................................................................................................
Unzipping /home/travis/.m2/wrapper/dists/apache-maven-3.3.1-bin/22bc38rir9hjukbpmqefdsp306/apache-maven-3.3.1-bin.zip to /home/travis/.m2/wrapper/dists/apache-maven-3.3.1-bin/22bc38rir9hjukbpmqefdsp306
Set executable permissions for: /home/travis/.m2/wrapper/dists/apache-maven-3.3.1-bin/22bc38rir9hjukbpmqefdsp306/apache-maven-3.3.1/bin/mvn
Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T20:10:27+00:00)
Maven home: /home/travis/.m2/wrapper/dists/apache-maven-3.3.1-bin/22bc38rir9hjukbpmqefdsp306/apache-maven-3.3.1
Java version: 9.0.4, vendor: Oracle Corporation
Java home: /home/travis/oraclejdk9
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-1055-gcp", arch: "amd64", family: "unix"
[INFO] Downloading: https://maven-central.storage-download.googleapis.com/maven2/io/takari/polyglot/polyglot-ruby/0.4.4/polyglot-ruby-0.4.4.pom
[WARNING] Failed to read extensions descriptor /home/travis/build/mkristian/jbundler/.mvn/extensions.xml: Plugin io.takari.polyglot:polyglot-ruby:0.4.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for io.takari.polyglot:polyglot-ruby:jar:0.4.4
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.080 s
[INFO] Finished at: 2020-04-09T20:21:29+00:00
[INFO] Final Memory: 12M/41M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/home/travis/build/mkristian/jbundler). Please verify you invoked Maven from the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
oraclejdk9 failure
INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 3, Failed: 3, Errors: 0, Skipped: 0
[INFO] -------------------------------------------------
[ERROR] The following builds failed:
[ERROR] * lock_down/pom.xml
[ERROR] * gemspec_with_system_jar_and_provided_jar/pom.xml
[ERROR] * running_rspec_via_rake/pom.xml
[INFO] -------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:11 min
[INFO] Finished at: 2020-04-09T20:56:23+00:00
[INFO] Final Memory: 39M/347M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:1.8:run (integration-test) on project jbundler: 3 builds failed. See console output above for details. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
openjdk8 failure
Oh, this has rotted on the vine, Travis CI needs replacing.
Perhaps a GitHub Actions CI would be OK?