Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonglau committed Jan 17, 2023
1 parent a16cd2a commit d522bd6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ workflows:
- eventuate-gradle-build-and-test/build-and-test:
name: mysql-binlog-kafka
script: ./build-and-test-all-mysql-binlog-kafka.sh
- eventuate-gradle-build-and-test/build-and-test:
name: mysql-binlog-kafka-spring-boot-3
script: ./build-and-test-all-mysql-kafka-spring-boot-3.sh
- eventuate-gradle-build-and-test/build-and-test:
name: mysql-binlog-redis
script: ./build-and-test-all-mysql-binlog-redis.sh
Expand All @@ -21,6 +24,9 @@ workflows:
- eventuate-gradle-build-and-test/build-and-test:
name: mysql-binlog-kafka-dbid
script: TEST_DB_ID=yes ./build-and-test-all-mysql-binlog-kafka.sh
- eventuate-gradle-build-and-test/build-and-test:
name: mysql-binlog-kafka-dbid-spring-boot3
script: TEST_DB_ID=yes ./build-and-test-all-mysql-kafka-spring-boot-3.sh
- eventuate-gradle-build-and-test/build-and-test:
name: mysql-binlog-redis-dbid
script: TEST_DB_ID=yes ./build-and-test-all-mysql-binlog-redis.sh
Expand All @@ -38,10 +44,12 @@ workflows:
- publish
requires:
- mysql-binlog-kafka
- mysql-binlog-kafka-spring-boot-3
- mysql-binlog-redis
- postgres-wal-rabbitmq
- mssql-polling-activemq
- mysql-binlog-kafka-dbid
- mysql-binlog-kafka-dbid-spring-boot3
- mysql-binlog-redis-dbid
- postgres-wal-rabbitmq-dbid
- mssql-polling-activemq-dbid
10 changes: 10 additions & 0 deletions build-and-test-all-mysql-kafka-spring-boot-3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /bin/bash

set -e

export DATABASE=mysql
export MODE=binlog
export BROKER=kafka
export COORDINATOR=zookeeper

./_build-and-test-all.sh -P springBootVersion=3.0.1
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ apply plugin: "io.eventuate.plugins.gradle.publish.EventuatePublish"

allprojects {

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
mavenCentral()
maven { url "https://repo.spring.io/milestone" }
Expand All @@ -45,6 +42,13 @@ allprojects {
}
}

subprojects { project ->
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(project.ext.get("springBootVersion").startsWith("3") ? 17 : 8));
}
}
}

gradle.projectsEvaluated {
task aggregateJavaDocs(type: Javadoc) {
Expand Down

0 comments on commit d522bd6

Please sign in to comment.