openprov / interop-test-harness

Interoperability test harness for the Southampton Provenance Suite.
MIT License
1 stars 2 forks source link

ProvToolbox takes a long time to install #4

Open mikej888 opened 9 years ago

mikej888 commented 9 years ago

ProvToolbox takes a long time to install as the "mvn clean install" command not only builds the software but runs all its tests. This makes it very time consuming when using within the interoperability test harness (possibly the most time consuming part of the whole process). If there is a way to build ProvToolbox, without running its tests, when that should be tried in the Travis CI and Jenkins build configurations to see if it reduces the overall execution time for test jobs using ProvToolbox as a converter or comparator.

trungdong commented 9 years ago

If you want to build ProvToolbox without running the tests:

mvn install -DskipTests

Without running tests, the above build took less than 30s on my machine.

trungdong commented 9 years ago

In addition, Travis has support caching built libraries (or any directory): http://docs.travis-ci.com/user/caching/

It looks like we can cache the Maven $HOME/.m2 directory. I guess you can also decide to build the ProvToolbox only if the toolbox-*-release.zip is not in the cache.

mikej888 commented 9 years ago

I tried "mvn install -DskipTests" for https://github.com/prov-suite/provtoolbox-interop-job, using the more stable "development" branch of ProvToolbox and the job runtime was a lot faster.