summaryrefslogtreecommitdiff
path: root/zookeeper-client
diff options
context:
space:
mode:
authorChristopher Tubbs <ctubbsii@apache.org>2021-01-13 16:00:03 +0000
committerDamien Diederen <ddiederen@apache.org>2021-01-13 16:00:03 +0000
commitd7ed7f305661c08927eb954700f7141cd18d4ff9 (patch)
treec9af41215f65d8ac25944c3112f539dff7fae544 /zookeeper-client
parent7fad7ea33365304f8c268279689a6cbeed6698bc (diff)
downloadzookeeper-d7ed7f305661c08927eb954700f7141cd18d4ff9.tar.gz
ZOOKEEPER-3973: Add GitHub Actions for CI
* Add GitHub Actions workflows * Add a CI workflow for PRs and branches * Add a manual workflow for custom builds * Remove redundant builds from Travis config (leave only s390x) * Update build status badges on README * Move inline links to bottom of the Markdown page for readability * Other: normalize URLs by using https and removing trailing slashes and unnecessary trailing .html, and fix syntax for section header * Remove extraneous unactivated configuration from pom.xml files (and update an XML comment to remove an extra confusing backslash) * Add ability to disable cppunit tests independently of surefire tests * Build only selected tests in CI workflow for now Author: Christopher Tubbs <ctubbsii@apache.org> Reviewers: Enrico Olivelli <eolivelli@apache.org>, Damien Diederen <ddiederen@apache.org> Closes #1508 from ctubbsii/ZOOKEEPER-3973-github-actions
Diffstat (limited to 'zookeeper-client')
-rwxr-xr-xzookeeper-client/zookeeper-client-c/pom.xml79
1 files changed, 49 insertions, 30 deletions
diff --git a/zookeeper-client/zookeeper-client-c/pom.xml b/zookeeper-client/zookeeper-client-c/pom.xml
index b66712dcd..dd9c23f4d 100755
--- a/zookeeper-client/zookeeper-client-c/pom.xml
+++ b/zookeeper-client/zookeeper-client-c/pom.xml
@@ -35,15 +35,6 @@
<c-test-coverage-arg> </c-test-coverage-arg>
</properties>
- <profiles>
- <profile>
- <id>c-test-coverage</id>
- <properties>
- <c-test-coverage-arg>--enable-gcov</c-test-coverage-arg>
- </properties>
- </profile>
- </profiles>
-
<build>
<plugins>
<plugin>
@@ -126,27 +117,6 @@
</goals>
</execution>
<execution>
- <id>test-cppunit</id>
- <phase>test</phase>
- <configuration>
- <!-- do not run cpp tests if tests are globally skipped -->
- <skip>${skipTests}</skip>
- <target>
- <exec dir="${basedir}/target/c" executable="make" failonerror="true">
- <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH};/usr/lib" />
- <env key="PATH" path="${env.PATH};${basedir};" />
- <env key="CALLER" value="ANT" />
- <env key="CLOVER_HOME" value="${basedir}/../../zookeeper-server/target" />
- <env key="base_dir" value="${basedir}/../.." />
- <arg line="check" />
- </exec>
- </target>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- <execution>
<id>replace-cclient-files-during-release</id>
<phase>none</phase>
<goals>
@@ -173,5 +143,54 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>c-test-coverage</id>
+ <properties>
+ <c-test-coverage-arg>--enable-gcov</c-test-coverage-arg>
+ </properties>
+ </profile>
+ <profile>
+ <!-- can be skipped by deactivating the profile with -P!cppunit (may need to escape or quote exclamation on command-line) -->
+ <id>cppunit</id>
+ <activation>
+ <property>
+ <!-- can also be skipped by -DskipCppUnit or with -DskipTests (see below) -->
+ <name>!skipCppUnit</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>test-cppunit</id>
+ <phase>test</phase>
+ <configuration>
+ <!-- do not run cpp tests if tests are globally skipped -->
+ <skip>${skipTests}</skip>
+ <target>
+ <exec dir="${basedir}/target/c" executable="make" failonerror="true">
+ <env key="LD_LIBRARY_PATH" value="${env.LD_LIBRARY_PATH};/usr/lib" />
+ <env key="PATH" path="${env.PATH};${basedir};" />
+ <env key="CALLER" value="ANT" />
+ <env key="CLOVER_HOME" value="${basedir}/../../zookeeper-server/target" />
+ <env key="base_dir" value="${basedir}/../.." />
+ <arg line="check" />
+ </exec>
+ </target>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>