-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (78 loc) · 1.87 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
67
68
69
70
71
72
73
74
75
76
77
78
env:
global:
- TERM=dumb
dist: trusty
notifications:
email: false
git:
quiet: true
depth: 1
language: java
jdk: openjdk8
node_js: lts/*
python: 3
services:
- docker
addons:
apt:
update: true
sources:
- google-chrome
packages:
- jq
- bash
- sudo
- lsof
- wget
- curl
- unzip
- python3-pip
- docker-ce
install: true
before_install:
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user $(whoami) --upgrade pip
- pip install --user $(whoami) --upgrade httpie
- http --version --debug
- docker-compose version
#
- source <(curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash)
- stop_any 80 8001 8002 8080 5432
jobs:
include:
- stage: test
jdk: openjdk8
name: integration tests
script:
- cd $TRAVIS_BUILD_DIR
- ./gradlew clean test
- ./gradlew
- bash $TRAVIS_BUILD_DIR/build/libs/*-SNAPSHOT.jar &
- wait_for 8080
- http get :8080
- http post :8080/api/v1/messages message=ololo
- http post :8080/api/v1/messages message=ololo
- http post :8080/api/v1/messages message=ololo not=found
- http get :8080/api/v1/messages
- stop_any 80 8080
- stage: test
jdk: openjdk11
name: integration tests (openjdk11)
script:
- cd $TRAVIS_BUILD_DIR
- ./gradlew clean test
- ./gradlew
- java -jar $TRAVIS_BUILD_DIR/build/libs/*-SNAPSHOT.jar &
- wait_for 8080
- http get :8080
- http post :8080/api/v1/messages message=ololo
- http post :8080/api/v1/messages message=ololo
- http post :8080/api/v1/messages message=ololo not=found
- http get :8080/api/v1/messages
- stop_any 80 8080
cache:
directories:
- ~/.embedmongo
- ~/.gradle
packages: true
pip: true