-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
40 lines (40 loc) · 1.17 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
env:
global:
TERM=dumb
language: java
jdk: oraclejdk8
install: true
before_script:
- sudo apt update -y || true
- sudo apt -y install python-pip
- sudo pip install httpie
- source <(curl -fsSL https://raw.github.com/daggerok/bash-functions/master/main.bash)
script:
# maven
- ./mvnw
- java -jar target/*.jar &
- wait_for 8080
- http -a user:user get :8080/
- http -a user:user get :8080/api/v1/users
- http -a admin:admin get :8080/api/v1/users
- http -a user:user get :8080/profiles/admin
- http -a admin:admin get :8080/profiles/admin
- http -a admin:admin get :8080/api/v1/users/ accept:application/stream+json
- http -a admin:admin post :8080/api/v1/users username=ololo
- stop_any 8080
# gradle
- ./gradlew
- java -jar build/libs/*.jar &
- wait_for 8080
- http -a user:user get :8080/
- http -a user:user get :8080/api/v1/users
- http -a admin:admin get :8080/api/v1/users
- http -a user:user get :8080/profiles/admin
- http -a admin:admin get :8080/profiles/admin
- http -a admin:admin get :8080/api/v1/users/ accept:application/stream+json
- http -a admin:admin post :8080/api/v1/users username=ololo
- stop_any 8080
cache:
directories:
- $HOME/.m2/
- $HOME/.gradle/