Changed Docker usage on Travis-CI
This commit is contained in:
parent
772977f391
commit
4ddd4b33be
20
.travis.yml
20
.travis.yml
@ -1,7 +1,23 @@
|
|||||||
sudo: required
|
|
||||||
language: java
|
language: java
|
||||||
script: mvn clean install
|
sudo: required
|
||||||
|
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- oraclejdk8
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
# Install Maven 3.3.9, since the Jolokia Maven plugin requires 3.2.1 or later but Travis current runs 3.1.x
|
||||||
|
before_install:
|
||||||
|
- docker ps -a
|
||||||
|
- wget https://archive.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip
|
||||||
|
- unzip -qq apache-maven-3.3.9-bin.zip
|
||||||
|
- export M2_HOME=$PWD/apache-maven-3.3.9
|
||||||
|
- export PATH=$M2_HOME/bin:$PATH
|
||||||
|
- mvn -version
|
||||||
|
|
||||||
|
after_install:
|
||||||
|
- docker ps -a
|
||||||
|
|
||||||
|
script:
|
||||||
|
- mvn clean install
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
[![Build Status](https://travis-ci.org/debezium/debezium.svg?branch=master)](https://travis-ci.org/debezium/debezium)
|
[![Build Status](https://travis-ci.org/debezium/debezium.svg?branch=master)](https://travis-ci.org/debezium/debezium)
|
||||||
|
[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
|
||||||
|
|
||||||
Copyright 2008-2015 Red Hat and contributors. Licensed under the Apache License, Version 2.0.
|
Copyright 2008-2015 Red Hat and contributors. Licensed under the Apache License, Version 2.0.
|
||||||
|
|
||||||
# Debezium
|
# Debezium
|
||||||
|
@ -85,7 +85,6 @@ public int size() {
|
|||||||
|
|
||||||
public Set<TableId> drainChanges() {
|
public Set<TableId> drainChanges() {
|
||||||
return lock.write(() -> {
|
return lock.write(() -> {
|
||||||
// if (changes.isEmpty()) return Collections.<TableId>emptySet();
|
|
||||||
Set<TableId> result = new HashSet<>(changes);
|
Set<TableId> result = new HashSet<>(changes);
|
||||||
changes.clear();
|
changes.clear();
|
||||||
return result;
|
return result;
|
||||||
|
@ -167,7 +167,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<systemPropertyVariables>
|
<systemPropertyVariables>
|
||||||
<!-- Make these available to the tests via system properties -->
|
<!-- Make these available to the tests via system properties -->
|
||||||
<database.hostname>${dockerhost.ip}</database.hostname>
|
<database.hostname>${docker.host.address}</database.hostname>
|
||||||
<database.port>${database.port}</database.port>
|
<database.port>${database.port}</database.port>
|
||||||
<database.user>${database.user}</database.user>
|
<database.user>${database.user}</database.user>
|
||||||
<database.password>${database.password}</database.password>
|
<database.password>${database.password}</database.password>
|
||||||
@ -175,6 +175,7 @@
|
|||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<!-- Extract from $DOCKER_HOST the IP address of the host that will run our Docker images -->
|
<!-- Extract from $DOCKER_HOST the IP address of the host that will run our Docker images -->
|
||||||
|
<!--
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
<artifactId>build-helper-maven-plugin</artifactId>
|
<artifactId>build-helper-maven-plugin</artifactId>
|
||||||
@ -194,6 +195,7 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
-->
|
||||||
</plugins>
|
</plugins>
|
||||||
<resources>
|
<resources>
|
||||||
<!-- Apply the properties set in the POM to the resource files -->
|
<!-- Apply the properties set in the POM to the resource files -->
|
||||||
|
@ -25,7 +25,9 @@
|
|||||||
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.FixMethodOrder;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
import org.junit.runners.MethodSorters;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
@ -48,10 +50,11 @@
|
|||||||
import io.debezium.jdbc.TestDatabase;
|
import io.debezium.jdbc.TestDatabase;
|
||||||
import io.debezium.mysql.MySQLConnection;
|
import io.debezium.mysql.MySQLConnection;
|
||||||
|
|
||||||
|
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
|
||||||
public class ReadBinLogIT {
|
public class ReadBinLogIT {
|
||||||
|
|
||||||
protected static final Logger LOGGER = LoggerFactory.getLogger(ReadBinLogIT.class);
|
protected static final Logger LOGGER = LoggerFactory.getLogger(ReadBinLogIT.class);
|
||||||
protected static final long DEFAULT_TIMEOUT = TimeUnit.SECONDS.toMillis(3);
|
protected static final long DEFAULT_TIMEOUT = TimeUnit.SECONDS.toMillis(15);
|
||||||
|
|
||||||
private static final class AnyValue implements Serializable {
|
private static final class AnyValue implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
6
pom.xml
6
pom.xml
@ -83,10 +83,10 @@
|
|||||||
<modules>
|
<modules>
|
||||||
<module>support/checkstyle</module>
|
<module>support/checkstyle</module>
|
||||||
<module>debezium-core</module>
|
<module>debezium-core</module>
|
||||||
<module>debezium-ingest-jdbc</module>
|
<!--module>debezium-ingest-jdbc</module-->
|
||||||
<module>debezium-ingest-postgres</module>
|
<!--module>debezium-ingest-postgres</module-->
|
||||||
<module>debezium-ingest-mysql</module>
|
<module>debezium-ingest-mysql</module>
|
||||||
<module>debezium-kafka-connect</module>
|
<!--module>debezium-kafka-connect</module-->
|
||||||
</modules>
|
</modules>
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
Loading…
Reference in New Issue
Block a user