forked from debezium/debezium
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4458cf
commit 0f196f7
Showing
4 changed files
with
123 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
language: java | ||
cache: | ||
directories: | ||
- $HOME/.m2/repository | ||
|
||
sudo: required | ||
|
||
jdk: | ||
- oraclejdk8 | ||
|
||
services: | ||
- docker | ||
|
||
# First stop MySQL and PostgreSQL that run by default (see DBZ-163). Then check Docker status. Finally, | ||
# 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: | ||
- sudo service mysql-5.6 stop || sudo service mysql stop | ||
- sudo /etc/init.d/postgresql stop | ||
- docker -v | ||
- 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 | ||
|
||
# By default Travis will install dependencies before it runs a build, and with Maven projects that | ||
# means running an install build without tests. We don't need to do this, and it actually causes problems. | ||
# So skip it... | ||
install: true | ||
|
||
after_install: | ||
- docker ps -a | ||
|
||
script: | ||
- mvn clean install -Passembly -Dversion.postgres.server=9.6-devel | ||
- mvn install -pl debezium-connector-mysql -Pparser-antlr -DskipTests | ||
- mvn install -pl debezium-connector-postgres -Pwal2json-decoder -Dversion.postgres.server=9.6-devel | ||
- mvn install -pl debezium-connector-mongodb -Dversion.mongo.server=3.2.19 | ||
|
||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/44c51b6da8c2bec32645 | ||
on_success: always # options: [always|never|change] default: always | ||
on_failure: always # options: [always|never|change] default: always | ||
on_start: never # options: [always|never|change] default: always | ||
#language: java | ||
#cache: | ||
# directories: | ||
# - $HOME/.m2/repository | ||
# | ||
#sudo: required | ||
# | ||
#jdk: | ||
# - oraclejdk8 | ||
# | ||
#services: | ||
# - docker | ||
# | ||
## First stop MySQL and PostgreSQL that run by default (see DBZ-163). Then check Docker status. Finally, | ||
## 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: | ||
# - sudo service mysql-5.6 stop || sudo service mysql stop | ||
# - sudo /etc/init.d/postgresql stop | ||
# - docker -v | ||
# - 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 | ||
# | ||
## By default Travis will install dependencies before it runs a build, and with Maven projects that | ||
## means running an install build without tests. We don't need to do this, and it actually causes problems. | ||
## So skip it... | ||
#install: true | ||
# | ||
#after_install: | ||
# - docker ps -a | ||
# | ||
#script: | ||
# - mvn clean install -Passembly -Dversion.postgres.server=9.6-devel | ||
# - mvn install -pl debezium-connector-mysql -Pparser-antlr -DskipTests | ||
# - mvn install -pl debezium-connector-postgres -Pwal2json-decoder -Dversion.postgres.server=9.6-devel | ||
# - mvn install -pl debezium-connector-mongodb -Dversion.mongo.server=3.2.19 | ||
# | ||
#notifications: | ||
# webhooks: | ||
# urls: | ||
# - https://webhooks.gitter.im/e/44c51b6da8c2bec32645 | ||
# on_success: always # options: [always|never|change] default: always | ||
# on_failure: always # options: [always|never|change] default: always | ||
# on_start: never # options: [always|never|change] default: always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...zium-connector-mongodb/src/test/java/io/debezium/connector/mongodb/TpReplicatorTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//package io.debezium.connector.mongodb; | ||
// | ||
//import io.debezium.config.Configuration; | ||
//import io.debezium.util.Testing; | ||
//import org.apache.kafka.connect.source.SourceRecord; | ||
//import org.junit.Before; | ||
//import org.junit.Test; | ||
// | ||
//import java.util.LinkedList; | ||
//import java.util.List; | ||
// | ||
//import static org.fest.assertions.Assertions.assertThat; | ||
// | ||
// | ||
//public class TpReplicatorTests extends AbstractMongoIT { | ||
// | ||
// @Before | ||
// public void beforeEach() { | ||
// Testing.Print.disable(); | ||
// Testing.Debug.disable(); | ||
// this.useConfiguration(TpReplicatorTests.getConfiguration()); | ||
// } | ||
// | ||
// @Test | ||
// public void shouldReturnVersion() throws InterruptedException { | ||
// assertThat(Module.version()).isNotNull(); | ||
// assertThat(Module.version()).isNotEmpty(); | ||
// | ||
// | ||
// List<SourceRecord> records = new LinkedList<>(); | ||
// Replicator replicator = new Replicator(context, replicaSet, records::add, (x) -> {}); | ||
// Thread thread = new Thread(replicator::run); | ||
// thread.start(); | ||
// | ||
// Thread.sleep(Integer.MAX_VALUE); | ||
// } | ||
// | ||
// public static Configuration getConfiguration() { | ||
// return Configuration.fromSystemProperties("connector.").edit() | ||
// .withDefault(MongoDbConnectorConfig.HOSTS, "set-545a4ec660e6d158ff007ced/trustpilot-m1.tp-staging.com:27017") | ||
// .withDefault(MongoDbConnectorConfig.COLLECTION_WHITELIST, "Trustpilot.BusinessUnit") | ||
// .withDefault(MongoDbConnectorConfig.PASSWORD, "******") | ||
// .withDefault(MongoDbConnectorConfig.USER, "TP_OplogReader") | ||
// .withDefault(MongoDbConnectorConfig.AUTO_DISCOVER_MEMBERS, true) | ||
// .withDefault(MongoDbConnectorConfig.LOGICAL_NAME, "mongo.tp").build(); | ||
// } | ||
// | ||
//} |