Continuous Building Spoofax

Spoofax

Using Maven Tycho

Spoofax project can be built continuously using a combination of Maven, Tycho and Ant. Using Maven should make it easy to run it in a continuous build server like Hudson. We use the same techniques described here in our continuous builds on Hydra.

Installing Spoofax from command-line

You can install Eclipse and Spoofax like described here. However, in a continuous build/integration setting it is sometimes useful to be able to perform these actions from the command-line. Note that this script uses the Spoofax unstable update site.

If you want to run tests, like JUnit tests, make sure you add org.junit4 to your plugin dependencies and MANIFEST.MF. If your tests reside in your main plugin, you will need to edit the generated pom.xml file of that plugin. Replace,

<packaging>eclipse-plugin</packaging>

by,

<packaging>eclipse-test-plugin</packaging>

If you have your tests in a seperate plugin which name ends with tests, Tycho should recognize this and change the packaging element for you.

Running ant builds

Before running Maven you need to use build.main.xml of the Spoofax project(s) to generate some code/files that spoofax normally generates automatically from Eclipse (parsetables, java code from stratego, etc.)