[#21] Add travis support for PR/CI testing of JLang #47
+119
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a travis config to build JLang on both MacOS and linux, and run the tests on linux. Due to the new licensing of the oracle JDK7, the linux distro used is Ubuntu precise, which on travis still has the Oracle JDK7 pre-installed. MacOS does not, so running the tests does not work as expected. The travis file installs and/or builds the necessary components, and then builds JLang using its makefiles. The current LLVM jar in the repo does not support Ubuntu 12.04, so LLVM was rebuilt and packaged using the javacpp-presets project, and the jlangc driver was modified to support additional classpath options for running the compiler. The makefiles to build the project and run tests were then modified with the additional classpath only under the travis environment to maintain compatibility with currently working environments. This addresses issue #21.