forked from salesforce/kafka-junit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (29 loc) · 920 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: java
jdk:
- oraclejdk8
sudo: false
cache:
directories:
- $HOME/.m2
install: true
## Define kafka versions to build against
env:
-
KAFKA_VERSION=0.11.0.3
EXCLUDE_KAFKA_TESTS=1_0_x
-
KAFKA_VERSION=1.0.2
EXCLUDE_KAFKA_TESTS=NOT-USED
-
KAFKA_VERSION=1.1.1
EXCLUDE_KAFKA_TESTS=NOT-USED
-
KAFKA_VERSION=2.0.1
EXCLUDE_KAFKA_TESTS=0_11_0_x
script:
## Generate dummy SSL Certificates used in tests
- script/generateCertificatesForTests.sh
## Run CheckStyle and License Header checks, compile, and install locally
- mvn clean install -DskipTests=true -DskipCheckStyle=false -Dmaven.javadoc.skip=true -B -V -DkafkaVersion=$KAFKA_VERSION -Dtests.excluded=$EXCLUDE_KAFKA_TESTS
## Run test suite
- mvn test -B -DkafkaVersion=$KAFKA_VERSION -Dtests.excluded=$EXCLUDE_KAFKA_TESTS -DskipCheckStyle=true -Djava.security.auth.login.config=${PWD}/kafka-junit-core/src/test/resources/jaas.conf