Repository: cayenne Updated Branches: refs/heads/master 544375feb -> 1460aae0f
adding Docker profiles to dbsync module Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/1460aae0 Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/1460aae0 Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/1460aae0 Branch: refs/heads/master Commit: 1460aae0f7e57174e31eaf9d6d2945b303a28300 Parents: 544375f Author: Savva Kolbachev <s.kolbac...@gmail.com> Authored: Sat Dec 17 16:24:16 2016 +0300 Committer: Savva Kolbachev <s.kolbac...@gmail.com> Committed: Sat Dec 17 16:24:16 2016 +0300 ---------------------------------------------------------------------- cayenne-dbsync/pom.xml | 70 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cayenne/blob/1460aae0/cayenne-dbsync/pom.xml ---------------------------------------------------------------------- diff --git a/cayenne-dbsync/pom.xml b/cayenne-dbsync/pom.xml index c004ce0..951babf 100644 --- a/cayenne-dbsync/pom.xml +++ b/cayenne-dbsync/pom.xml @@ -87,7 +87,7 @@ <scope>test</scope> </dependency> </dependencies> - + <build> <plugins> <!-- This ensures LICESNE and NOTICE inclusion in all jars --> @@ -134,4 +134,72 @@ </plugin> </plugins> </build> + <profiles> + <profile> + <id>postgres-docker</id> + <activation> + <property> + <name>cayenneTestConnection</name> + <value>postgres-docker</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <executions> + <execution> + <id>start-postgres</id> + <phase>pre-integration-test</phase> + <goals> + <goal>start</goal> + </goals> + </execution> + <execution> + <id>stop-postgres</id> + <phase>post-integration-test</phase> + <goals> + <goal>stop</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + <profile> + <id>mysql-docker</id> + <activation> + <property> + <name>cayenneTestConnection</name> + <value>mysql-docker</value> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <executions> + <execution> + <id>start-mysql</id> + <phase>pre-integration-test</phase> + <goals> + <goal>start</goal> + </goals> + </execution> + <execution> + <id>stop-mysql</id> + <phase>post-integration-test</phase> + <goals> + <goal>stop</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>