blob: d025710959f7cfc64e0d904d9afff8df7e460d6a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2007, 2013 THALES GLOBAL SERVICES
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Obeo - Initial API and implementation
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.sirius</groupId>
<artifactId>sirius-parent</artifactId>
<version>7.0.0-SNAPSHOT</version>
<relativePath>../../packaging/org.eclipse.sirius.parent</relativePath>
</parent>
<properties>
<sonar.coverage.exclusions>src/**/*</sonar.coverage.exclusions>
</properties>
<artifactId>org.eclipse.sirius.tests.tree</artifactId>
<packaging>eclipse-test-plugin</packaging>
<version>7.0.0-SNAPSHOT</version>
<profiles>
<profile>
<id>unreliable-tests</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<!-- There is currently no unreliable tests in this plug-in, so the tests are deactivated for unreliable-tests profile.
This is to avoid an error of kind
"Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:2.0.0:test (default-test)
on project org.eclipse.sirius.tests.tree: No tests found."-->
<tests.junit.skip>true</tests.junit.skip>
</properties>
</profile>
<profile>
<id>long-tests</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<properties>
<!-- There is currently no long tests in this plug-in, so the tests are deactivated for long-tests profile.
This is to avoid an error of kind
"Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:2.0.0:test (default-test)
on project org.eclipse.sirius.tests.tree: No tests found."-->
<tests.junit.skip>true</tests.junit.skip>
</properties>
</profile>
</profiles>
<build>
<plugins>
<!-- Compile Acceleo3 modules -->
<plugin>
<groupId>org.eclipse.acceleo</groupId>
<artifactId>org.eclipse.acceleo.maven</artifactId>
<version>3.5.2</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>acceleo-compile</goal>
</goals>
</execution>
</executions>
<configuration>
<skipTests>${tests.junit.skip}</skipTests>
<useBinaryResources>false</useBinaryResources>
<usePlatformResourcePath>true</usePlatformResourcePath>
<acceleoProject>
<root>${project.basedir}</root>
<entries>
<entry>
<input>src</input>
<output>target/classes</output>
</entry>
</entries>
</acceleoProject>
<packagesToRegister>
<packageToRegister>org.eclipse.emf.ecore.EcorePackage</packageToRegister>
</packagesToRegister>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<dependencies>
<dependency>
<type>eclipse-feature</type>
<artifactId>org.eclipse.e4.rcp</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
<systemProperties>
<org.eclipse.sirius.tests.skipLongTests>${tests.skipLongTests}</org.eclipse.sirius.tests.skipLongTests>
<org.eclipse.sirius.tests.skipUnreliableTests>${tests.skipUnreliableTests}</org.eclipse.sirius.tests.skipUnreliableTests>
</systemProperties>
<skipTests>${tests.junit.skip}</skipTests>
<includes>
<include>${tests.junit.include}</include>
</includes>
<useUIHarness>true</useUIHarness>
<useUIThread>true</useUIThread>
<argLine>${tests.vmargs}</argLine>
<testFailureIgnore>${tests.ignoreFailures}</testFailureIgnore>
<forkedProcessTimeoutInSeconds>${tests.timeout}</forkedProcessTimeoutInSeconds>
</configuration>
</plugin>
</plugins>
</build>
</project>