How to use continuous integration with the Eclipse project?

I used maven2 and hudson for some time for constant integration, but I think that Eclipse and Maven do not play well together. The plugin is sure there, but it is cranky to mash the maven project into something that loves eclipse, and the build time and unit test are too long. I am considering returning to the project of a pure eclipse without the participation of ant and without the participation of maven. With an endless plugin and a possible JavaRebel agent, it will give me a very fast build-deploy cycle. However, I would still like to have automatic and testing, so:

How to use continuous integration with the Eclipse project?

Is there a command line way?

Is there a build server that already supports it natively?

+5
source share
3 answers

I managed to find a good solution. I just got infinity (can be installed from the Eclipse market) to work when using maven and eclipse

In Eclipse-> Project Properties-> Java Build Path-> Source, uncheck: Allow folder output for source folders "

This will allow your project to have more than one output path, and Eclipse will start reporting to test classes as part of the class path. Infinitest now finds and runs tests!

All I did was use the official Maven Eclipse plugin and add it to my POM

<dependencies>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.5</version>
        <!-- <scope>provided</scope> -->
    </dependency>

    <dependency>
        <groupId>org.infinitest</groupId>
        <artifactId>infinitest</artifactId>
        <scope>test</scope>
        <version>4.0</version>
    </dependency>

</dependencies>
+2
source

, Eclipse Maven2 . , Maven2, .

, , Eclipse Maven . "mvn" . (...- itest) , 2 , -itest. ( ( ) , ( ) .)

mvn: mvn -o verify -Ditest

, itest pom: :

<profiles>
  <profile>
    <id>integration-test</id>
    <activation>
      <property>
        <name>itest</name>
      </property>
    </activation>
    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <executions>
            <execution>
              <id>itest</id>
            </execution>
          </executions>
          <configuration>
            <testSourceDirectory>src/main</testSourceDirectory>
            <testClassesDirectory>target/classes</testClassesDirectory>
            <forkMode>once</forkMode>
          </configuration>
        </plugin>
      </plugins>
    </build>
  </profile>
</profiles>
+4

Eclipse + Ant CruiseControl. , , , , Eclipse.

CruiseControl , , - . , , .

0

All Articles