| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 Ericsson |
| 4 | |
| 5 | All rights reserved. This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License v1.0 |
| 7 | which accompanies this distribution, and is available at |
| 8 | http://www.eclipse.org/legal/epl-v10.html |
| 9 | --> |
| 10 | <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" |
| 11 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 12 | <modelVersion>4.0.0</modelVersion> |
| 13 | |
| 14 | <parent> |
| 15 | <artifactId>org.eclipse.tracecompass.releng-parent</artifactId> |
| 16 | <groupId>org.eclipse.tracecompass</groupId> |
| 17 | <version>2.0.0-SNAPSHOT</version> |
| 18 | </parent> |
| 19 | |
| 20 | <artifactId>org.eclipse.tracecompass.alltests</artifactId> |
| 21 | <version>1.0.0-SNAPSHOT</version> |
| 22 | <packaging>eclipse-test-plugin</packaging> |
| 23 | |
| 24 | <name>Trace Compass All Tests</name> |
| 25 | |
| 26 | <properties> |
| 27 | <perf.database.loc>//127.0.0.1</perf.database.loc> |
| 28 | <perf.config>build=20140707-1632;host=myhost;config=linux;jvm=1.7</perf.config> |
| 29 | <perfFilesDestination>target</perfFilesDestination> |
| 30 | </properties> |
| 31 | |
| 32 | <build> |
| 33 | <plugins> |
| 34 | <plugin> |
| 35 | <groupId>org.eclipse.tycho</groupId> |
| 36 | <artifactId>tycho-surefire-plugin</artifactId> |
| 37 | <configuration> |
| 38 | <!-- Default build will not find any tests, but the profiles below |
| 39 | can define some. --> |
| 40 | <failIfNoTests>false</failIfNoTests> |
| 41 | </configuration> |
| 42 | </plugin> |
| 43 | </plugins> |
| 44 | </build> |
| 45 | |
| 46 | <profiles> |
| 47 | <!-- Profile to run the performance tests --> |
| 48 | <profile> |
| 49 | <id>performance</id> |
| 50 | <build> |
| 51 | <plugins> |
| 52 | <plugin> |
| 53 | <groupId>org.eclipse.tycho</groupId> |
| 54 | <artifactId>tycho-surefire-plugin</artifactId> |
| 55 | <version>${tycho-version}</version> |
| 56 | <configuration> |
| 57 | <argLine>-Declipse.perf.dbloc=${perf.database.loc} -Declipse.perf.config=${perf.config}</argLine> |
| 58 | <runOrder>reversealphabetical</runOrder> |
| 59 | <includes> |
| 60 | <include>**/RunAllPerfTests.java</include> |
| 61 | <include>**/PerfResultsToJSon.java</include> |
| 62 | </includes> |
| 63 | <useUIHarness>false</useUIHarness> |
| 64 | <useUIThread>false</useUIThread> |
| 65 | <product>org.eclipse.platform.ide</product> |
| 66 | </configuration> |
| 67 | </plugin> |
| 68 | <plugin> |
| 69 | <artifactId>maven-antrun-plugin</artifactId> |
| 70 | <executions> |
| 71 | <execution> |
| 72 | <id>deploy-performance-files</id> |
| 73 | <phase>install</phase> |
| 74 | <goals> |
| 75 | <goal>run</goal> |
| 76 | </goals> |
| 77 | <configuration> |
| 78 | <target> |
| 79 | <copy includeemptydirs="false" |
| 80 | todir="${perfFilesDestination}"> |
| 81 | <fileset dir="."> |
| 82 | <include name="*.json" /> |
| 83 | <include name="*.js" /> |
| 84 | </fileset> |
| 85 | </copy> |
| 86 | </target> |
| 87 | </configuration> |
| 88 | </execution> |
| 89 | </executions> |
| 90 | </plugin> |
| 91 | <!-- We don't use the ant file to clean because of http://jira.codehaus.org/browse/MANTRUN-78 --> |
| 92 | <plugin> |
| 93 | <artifactId>maven-clean-plugin</artifactId> |
| 94 | <version>2.6.1</version> |
| 95 | <executions> |
| 96 | <execution> |
| 97 | <id>clean-performance-files</id> |
| 98 | <phase>clean</phase> |
| 99 | <configuration> |
| 100 | <filesets> |
| 101 | <fileset> |
| 102 | <directory>.</directory> |
| 103 | <includes> |
| 104 | <include>*.json</include> |
| 105 | <include>*.js</include> |
| 106 | </includes> |
| 107 | </fileset> |
| 108 | </filesets> |
| 109 | </configuration> |
| 110 | <goals> |
| 111 | <goal>clean</goal> |
| 112 | </goals> |
| 113 | </execution> |
| 114 | </executions> |
| 115 | </plugin> |
| 116 | </plugins> |
| 117 | </build> |
| 118 | </profile> |
| 119 | </profiles> |
| 120 | |
| 121 | |
| 122 | </project> |