-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
55 lines (49 loc) · 1.15 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
env:
global:
TERM=dumb
jdk: oraclejdk8
#jdk:
#- openjdk8
#- oraclejdk8
install: true
before_install:
- sudo apt update -y >/dev/null || true
- sudo apt install -y --no-install-recommends python-pip >/dev/null
- sudo pip install httpie >/dev/null
- source <(curl -fsSL https://raw.github.com/daggerok/bash-functions/master/main.bash)
- stop_any 27017 8080 80
script:
- export root=$(pwd)
- cd $root/spring-boot-kotlin-config-props
- bash ./gradlew >/dev/null
- bash ./build/libs/*.jar &
- wait_for 8080
- http :8080/
- http :8080/api
- stop_any 8080 80
- bash ./mvnw >/dev/null
- bash ./target/*.jar &
- wait_for 8080
- http :8080/
- http :8080/api
- stop_any 8080 80
- >
for path in \
spring-boot-kotlin-config-props \
reactive-secured-sse \
reactive-kotlin-see \
spring-kotlin-example \
; do
cd "$root/$path"
bash gradlew clean build >/dev/null
done;
# 01 e2e
- cd $root/spring-kotlin-example
- bash gradlew clean build >/dev/null
- sudo mkdir -p /var/app
- sudo mv -f ./app/build/libs/*.jar /var/app/01.jar
- sudo ln -s /var/app/01.jar /etc/init.d/01
- sudo service 01 start
- wait_for 8080
- sudo service 01 stop
- stop_any 8080