| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, | |
| software distributed under the License is distributed on an | |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations | |
| under the License. | |
| --> | |
| <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/xsd/maven-4.0.0.xsd"> | |
| <parent> | |
| <artifactId>iotdb-parent</artifactId> | |
| <groupId>org.apache.iotdb</groupId> | |
| <version>0.12.4</version> | |
| </parent> | |
| <modelVersion>4.0.0</modelVersion> | |
| <artifactId>cross-tests</artifactId> | |
| <properties> | |
| <cross.test.test.skip>false</cross.test.test.skip> | |
| <cross.test.it.skip>${cross.test.test.skip}</cross.test.it.skip> | |
| <cross.ut.skip>${cross.test.test.skip}</cross.ut.skip> | |
| </properties> | |
| <dependencies> | |
| <dependency> | |
| <groupId>org.apache.iotdb</groupId> | |
| <artifactId>iotdb-cli</artifactId> | |
| <version>${project.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.iotdb</groupId> | |
| <artifactId>iotdb-server</artifactId> | |
| <version>${project.version}</version> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.iotdb</groupId> | |
| <artifactId>iotdb-server</artifactId> | |
| <version>${project.version}</version> | |
| <type>test-jar</type> | |
| <scope>test</scope> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-csv</artifactId> | |
| <version>1.9.0</version> | |
| </dependency> | |
| <dependency> | |
| <groupId>org.apache.commons</groupId> | |
| <artifactId>commons-lang3</artifactId> | |
| </dependency> | |
| </dependencies> | |
| <build> | |
| <plugins> | |
| <!--using `mvn test` to run UT, `mvn verify` to run ITs | |
| Reference: https://antoniogoncalves.org/2012/12/13/lets-turn-integration-tests-with-maven-to-a-first-class-citizen/--> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-surefire-plugin</artifactId> | |
| <configuration> | |
| <skipTests>${cross.ut.skip}</skipTests> | |
| </configuration> | |
| </plugin> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-failsafe-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <id>run-integration-tests</id> | |
| <phase>integration-test</phase> | |
| <goals> | |
| <goal>integration-test</goal> | |
| <goal>verify</goal> | |
| </goals> | |
| </execution> | |
| </executions> | |
| <configuration> | |
| <skipTests>${cross.test.test.skip}</skipTests> | |
| <skipITs>${cross.test.it.skip}</skipITs> | |
| </configuration> | |
| </plugin> | |
| </plugins> | |
| </build> | |
| <profiles> | |
| <profile> | |
| <id>skipCrossTests</id> | |
| <activation> | |
| <property> | |
| <name>skipTests</name> | |
| <value>true</value> | |
| </property> | |
| </activation> | |
| <properties> | |
| <cross.test.it.skip>true</cross.test.it.skip> | |
| <cross.ut.skip>true</cross.ut.skip> | |
| <cross.test.test.skip>true</cross.test.test.skip> | |
| </properties> | |
| </profile> | |
| <profile> | |
| <id>skipUT_CrossTests</id> | |
| <activation> | |
| <property> | |
| <name>skipUTs</name> | |
| <value>true</value> | |
| </property> | |
| </activation> | |
| <properties> | |
| <cross.ut.skip>true</cross.ut.skip> | |
| </properties> | |
| </profile> | |
| </profiles> | |
| </project> |