-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
62 lines (56 loc) · 1.25 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
sudo: required
group: travis_lts
env:
global:
TERM=dumb
language: java
jdk:
- openjdk8
- oraclejdk8
install: true
before_install:
- sudo apt update -y || true
- sudo apt install -y curl python-pip
- sudo pip install httpie
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 5432 5672 27017 8080
script:
- bash gradlew
- java -jar ./kafka/build/libs/*.jar &
- wait_for 8081
- java -jar ./reactive-data-flow-api/build/libs/*.jar &
- java -jar ./reactive-data-flow-processor/build/libs/*.jar &
- wait_for 8082 8083
- curl 127.0.0.1:8083 &
- sleep 1
- http :8082 body='message 1'
- sleep 1
- curl 127.0.0.1:8083 &
- sleep 1
- http :8082 body='message 2'
- sleep 1
- http :8082 body='message 3'
- sleep 1
- stop_any 8081 8082 8083
- bash mvnw
- java -jar ./kafka/target/*.jar &
- wait_for 8081
- java -jar ./reactive-data-flow-api/target/*.jar &
- java -jar ./reactive-data-flow-processor/target/*.jar &
- wait_for 8082 8083
- curl 127.0.0.1:8083 &
- curl 127.0.0.1:8083 &
- sleep 1
- http :8082 body='message 4'
- sleep 1
- curl 127.0.0.1:8083 &
- sleep 1
- http :8082 body='message 5'
- sleep 1
- http :8082 body='message 6'
- sleep 1
- stop_any 8081 8082 8083
cache:
directories:
- $HOME/.m2
- $HOME/.gradle