1

According to Travis CI steps for building a Java Project, created a .travis.yml file with the following contents:

language: java
jdk:
  - oraclejdk8
  - oraclejdk7
  - openjdk7
  - openjdk6

When git push is done, Travis automatically starts building and executes ant test. But then it fails because package org.junit does not exist.

I do have tests running locally, and junit is present in .\lib\junit_4\junit-4.10.

wolfram77
  • 2,841
  • 3
  • 23
  • 33

1 Answers1

1

Sorry,but nothing is present in https://github.com/wolfram77/java-spine/tree/master/lib except a netbeans library definition (nblibraries.properties) ... and this might not be enough for building on "Travis CI". Please upload the junit jars to see immediate results, or consider to shift your project to Maven or Gradle.

Community
  • 1
  • 1
xerx593
  • 12,237
  • 5
  • 33
  • 64
  • Thanks @xerx593! That helped. I realized that the `.gitignore` for Java was preventing the *JAR files* to be added to the repository. Now it works. – wolfram77 Apr 05 '15 at 15:27
  • Cool, you're welcome/glad to help/happy Eastern! :-) – xerx593 Apr 05 '15 at 16:23