Updating the Tribble library

From GSA

Jump to: navigation, search

Updating the revision of Tribble on the system is a relatively straightforward task if the following steps are taken.

  • Make sure that you've checked your changes into Tribble; unversioned changes will be problematic, so you should always check in so that you have a unique version number to identify your release.
  • Once you've checked-in Tribble, make sure to svn update, and then run svnversion. This will give you a version number which you can use to name your release. Lets say it was 82. If it contains an M (i.e. 82M) this means your version isn't clean (you have modifications that are not checked in), don't proceed.
  • from the Tribble main directory, run ant clean, then ant (make sure it runs successfully), and ant test (also make sure it completes successfully).
  • copy dist/tribble-0.1.jar (or whatever the internal Tribble version currently is) to your checkout of the GATK, as the file ./settings/repository/org.broad/tribble-<svnversion>.jar.
  • Copy the current XML file to the new name, i.e. from the base GATK trunk directory:
cp ./settings/repository/org.broad/tribble-<current_svnversion>.xml ./settings/repository/org.broad/tribble-<svnversion>.xml
  • Edit the ./settings/repository/org.broad/tribble-<svnversion>.xml with the new correct version number and release date (here we rev 81 to 82).
<ivy-module version="1.0">
    <info organisation="org.broad" module="tribble" revision="81" status="integration" publication="20100526124200" />
</ivy-module>
To:
<ivy-module version="1.0">
    <info organisation="org.broad" module="tribble" revision="82" status="integration" publication="20100528123456" />
</ivy-module>
Notice the change to the revision number and the publication date.
  • Remove the old files svn remove ./settings/repository/org.broad/tribble-<current_svnversion>.*
  • Add the new files svn add ./settings/repository/org.broad/tribble-<new_svnversion>.*
  • Make sure you're using the new libraries to build: remove your ant cache: rm -r ~/.ant/cache.
  • Run an ant clean, and then make sure to test the build with ant integrationtest and ant test.
  • Any check-in from the base SVN directory will now rev the Tribble version.
Personal tools