-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (58 loc) · 1.49 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
66
notifications:
email: false
env:
global:
- TERM=dumb
language: java
jdk: oraclejdk8
service:
- docker
addons:
apt:
packages:
- bash
- curl
- docker-ce
install: true
before_install:
- sudo apt-get update -yqq >/dev/null
- sudo apt-get install -yqq --no-install-suggests --no-install-recommends
tree jq python-pip curl bash sudo >/dev/null
#
- 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 3000 80 >/dev/null
script:
- export root=$(pwd)
#
- ./mvnw >/dev/null
- java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 ./target/*-swarm.jar -Djava.net.preferIPv4Stack=true &
- wait_for 8080
- sleep 10
- http :8080/api/v1/statistics
- http :8080/api/v1/messages message=ololo
- http :8080/api/v1/messages message=trololo
- http :8080/api/v1/messages
- http :8080/api/v1/statistics
- stop_any 80 8080
#FOR SOME REASONS WITH GRADLE, WILDFLY-SWARM TESTING HAS SOME ISSUES...
- ./gradlew >/dev/null
- ./build/libs/*-swarm.jar -Djava.net.preferIPv4Stack=true &
- wait_for 8080
- sleep 10
- http :8080/api/v1/statistics
- http :8080/api/v1/messages message=ololo
- http :8080/api/v1/messages message=trololo
- http :8080/api/v1/messages
- http :8080/api/v1/statistics
- stop_any 80 8080
before_cache:
- for item in $(find ~/.gradle -name "*.lock");
do sudo rm -rf $item ;
done
cache:
directories:
- $HOME/.m2
- $HOME/.docker
#- $HOME/.gradle