-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (42 loc) · 948 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
env:
global:
TERM=dumb
language: java
jdk: oraclejdk8
addons:
apt:
update: true
package:
- python-pip
install: true
before_install:
- sudo pip install httpie
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 5432 5672 27017 8080
script:
# gradle
- bash gradlew build
- java -jar gateway/build/libs/*.jar &
- wait_for 8080
- http :8080/get
- http :8080
- http :8080/headers
- http :8080/headers Host:my.magic-fake.host
- http :8080/local/get Host:who-hoo.rewrite.org
- http :8080/ololo/get Host:www.set.path.org
- stop_any 8080
# maven
- bash mvnw package
- java -jar gateway/target/*.jar &
- wait_for 8080
- http :8080
- http :8080/get
- http :8080/headers
- http :8080/headers Host:my.magic.fake.host
- http :8080/local/get Host:boo.rewrite.org
- http :8080/ololo/get Host:trololo.set.path.org
- stop_any 8080
cache:
directories:
- $HOME/.m2
- $HOME/.gradle