diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-12-10 11:51:34 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-12-10 11:51:34 -0800 |
commit | 8c437b9b902cf7bb2b4bd2fcceca458b1196c544 (patch) | |
tree | 71f0ba6ad4e7661a95afec0d0d8b8bfdab6d5d9f | |
parent | 0acb8a30c379f268e8a3e1340504530493a1a1dc (diff) | |
parent | 78a081f03b8d343b1f3d6ebe173fc035579da922 (diff) | |
download | scala-8c437b9b902cf7bb2b4bd2fcceca458b1196c544.tar.gz scala-8c437b9b902cf7bb2b4bd2fcceca458b1196c544.tar.bz2 scala-8c437b9b902cf7bb2b4bd2fcceca458b1196c544.zip |
Merge pull request #1650 from jsuereth/wip/add-mima-to-build
Now the test suite runs MIMA for compatibility testing.
-rw-r--r-- | build.xml | 36 |
1 files changed, 35 insertions, 1 deletions
@@ -22,7 +22,7 @@ END-USER TARGETS <target name="clean" depends="quick.clean" description="Removes binaries of compiler and library. Distributions are untouched."/> - <target name="test" depends="test.done, osgi.test" + <target name="test" depends="test.done, osgi.test, bc.run" description="Runs test suite and bootstrapping test on Scala compiler and library."/> <target name="test-opt" @@ -2644,6 +2644,40 @@ BOOTRAPING TEST AND TEST SUITE <target name="test.done" depends="test.suite, test.continuations.suite, test.scaladoc, test.stability, test.sbt"/> + +<!-- =========================================================================== +Binary compatibility testing +============================================================================ --> + + <target name="bc.init" depends="init"> + <property name="bc-build.dir" value="${build.dir}/bc"/> + <!-- Obtain mima --> + <mkdir dir="${bc-build.dir}"/> + <!-- Pull down MIMA --> + <artifact:dependencies pathId="mima.classpath"> + <dependency groupId="com.typesafe" artifactId="mima-reporter_2.9.2" version="0.1.4"/> + </artifact:dependencies> + <artifact:dependencies pathId="old.bc.classpath"> + <dependency groupId="org.scala-lang" artifactId="scala-library" version="2.10.0-RC2"/> + </artifact:dependencies> + </target> + + <target name="bc.run" depends="bc.init, pack.lib"> + <java + fork="true" + failonerror="true" + classname="com.typesafe.tools.mima.cli.Main"> + <arg value="--prev"/> + <arg value="${org.scala-lang:scala-library:jar}"/> + <arg value="--curr"/> + <arg value="${build-pack.dir}/lib/scala-library.jar"/> + <classpath> + <path refid="mima.classpath"/> + </classpath> + </java> + </target> + + <!-- =========================================================================== DISTRIBUTION ============================================================================ --> |