-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
65 lines (57 loc) · 1.82 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
notifications:
email: false
git:
depth: false
quiet: true
language: java
jdk: openjdk8
node_js: lts/*
addons:
apt:
packages:
- bash
- curl
- tree
- jq
- python-pip
env:
global:
- TERM=dumb
#
- ZOOKEEPER_PORT=2181
- ZOOKEEPER_PEERS=localhost:${ZOOKEEPER_PORT}
#
- KAFKA_HOME=/tmp/kafka
- KAFKA_PORT=9092
- KAFKA_PEERS=localhost:${KAFKA_PORT}
- KAFKA_VERSION=2.1.1
install: true
before_install:
- sudo apt-get update -yqq
#- sudo pip install docker-compose httpie >/dev/null 2>&1
#
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 8080 80
#
#- wget https://www.apache.org/dist/kafka/2.1.0/kafka_2.12-2.1.0.tgz -O ${KAFKA_HOME}.tgz
## migrated 2.1.0 -> 2.1.1:
- wget https://www.apache.org/dist/kafka/${KAFKA_VERSION}/kafka_2.12-${KAFKA_VERSION}.tgz -O ${KAFKA_HOME}.tgz
#- wget https://www.apache.org/dist/kafka/2.1.1/kafka_2.12-2.1.1.tgz -O ${KAFKA_HOME}.tgz
- mkdir -p ${KAFKA_HOME} && tar xzf ${KAFKA_HOME}.tgz -C ${KAFKA_HOME} --strip-components 1
- bash -c "${KAFKA_HOME}/bin/zookeeper-server-start.sh ${KAFKA_HOME}/config/zookeeper.properties &"
- wait_for ${ZOOKEEPER_PORT}
- bash -c "${KAFKA_HOME}/bin/kafka-server-start.sh ${KAFKA_HOME}/config/server.properties &"
- wait_for ${KAFKA_PORT}
- bash -c "${KAFKA_HOME}/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic bank-account-domain-events-kafka-template-topic.1 --zookeeper ${ZOOKEEPER_PEERS}"
script:
- ./mvnw -U
- java -jar ./app-level-1/target/*.jar
- java -jar ./fold-left-java-app/target/*.jar
- java -jar ./fold-left-vavr-app/target/*.jar
after_script:
- stop_any ${KAFKA_PORT} ${ZOOKEEPER_PORT}
- ./mvnw versions:display-property-updates
cache:
packages: true
directories:
- ~/.m2