-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
183 lines (160 loc) · 4.72 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
notifications:
email: false
git:
depth: 2
quiet: true
env:
global:
- TERM=dumb
- secure: GYdn2pmeMnvZM5Zwj1AYRlBsFq1cAvFG2KcdB3sman9pvx+n/o8Rt0I0wfpLpxVmjaAX/utzfDHHNjB5mP0Lf5yS4sofZ4hW+I5EOmHQ/8VUxQQCX1kgfkpwwBQRJnl3/7xevfd20PikViyjya+t/BiGCFFQGqDskhosI5dHAKU0H4ofOZObTIsmEhOYR5pYx0wfqJ2NSUtsQzAThaWwGsB+MnhmjGLSbeNul/JLLYbGQoXxpTj8jAxXvKRBXBIsTioghBFcKstybbxVzXuMJ/wrE/QD86vulF7QhNYcryjU53m1BDmF4PTKkKUM3GjMy2d/OSG7Vw+mBtof5tP5RjwSQNsS87mEep8oZYG0KVP1GMT85vJFvqtrasyXPOYWS6ZqQBPiSKdstYcPaXAM/h7zhSwkmrfrQHaUc2VM8guY8ARZmmSM/JUJYE/VUYrAYlssbn/0GwR298zzWhO/84CjhKBUL4yb4boLZRRU20hMo6Od0M0XmEa9wzeNGIUfEEVqBW9yijz3UCBMcMUgmLWHSKr1B23/LnlOl47e6CMGmUfwVYc/mFM33fdcewNiqw/sjbT6TUD3g04fmAbdOfMbmkp3Ksy1PIVzOfA3Vg/sS/ylWjRLsECDASmVCMgEETsvyqXKy6tZMFxtckX664vxksyU2MdhR4CGGuGMXeM=
language: java
jdk: openjdk8
service:
- docker
addons:
apt:
update: true
packages:
- jq
- bash
- curl
- sudo
- tree
- docker-ce
- python-pip
- libxml2-utils
install: true
before_install:
- 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 80 8080 3000
stages:
- test
- deploy
before_script:
- export root=$(pwd)
jobs:
include:
- stage: test
name: events
jdk: openjdk8
script:
- ./mvnw clean package -Passembly,events
- java -jar target/*-all.jar
- ./mvnw clean package -Pcapsule,events
- java -jar target/*-all.jar
- stage: test
name: weld
jdk: openjdk8
script:
- ./mvnw clean package -Passembly,weld
- java -jar target/*-all.jar
- ./mvnw clean package -Pcapsule,weld
- java -jar target/*-all.jar
- stage: test
name: alternatives
jdk: openjdk8
script:
- ./mvnw clean package -Passembly,alternatives
- java -jar target/*-all.jar
- ./mvnw clean package -Pcapsule,alternatives
- java -jar target/*-all.jar
- stage: test
name: dependent
jdk: openjdk8
script:
- ./mvnw clean package -Passembly,dependent
- java -jar target/*-all.jar
- ./mvnw clean package -Pcapsule,dependent
- java -jar target/*-all.jar
- stage: test
name: any
jdk: openjdk8
script:
- ./mvnw clean package -Pany,assembly
- java -jar target/*-all.jar
- ./mvnw clean package -Pany,capsule
- java -jar target/*-all.jar
- stage: test
name: qualifiersmore
jdk: openjdk8
script:
- ./mvnw clean package -Pqualifiersmore,assembly
- java -jar target/*-all.jar
- ./mvnw clean package -Pqualifiersmore,capsule
- java -jar target/*-all.jar
- stage: test
name: mvn updates
jdk: openjdk8
script: ./mvnw versions:display-property-updates
- stage: test
name: docker-compose
jdk: openjdk8
script:
- ./mvnw clean package -Passembly,interceptors >/dev/null
- java -jar target/*-all.jar
- ./mvnw -Passembly,gettingstarted ; ./mvnw docker-compose:up -P docker
- ./mvnw clean package -Pcapsule,any >/dev/null
- java -jar target/*-all.jar
- ./mvnw -Pcapsule,dependent ; ./mvnw docker-compose:up -P docker
- stage: test
name: getting-started
jdk: openjdk8
script:
- ./mvnw clean package -Pgetting-started,assembly
- java -jar target/*-all.jar
- ./mvnw clean package -Pgetting-started,capsule
- java -jar target/*-all.jar
- stage: test
name: interceptors
jdk: openjdk8
script:
- ./mvnw -Pinterceptors,assembly
- java -jar target/*-all.jar
- ./mvnw -Pinterceptors,capsule
- java -jar target/*-all.jar
- stage: test
name: logs
jdk: openjdk8
script:
- ./mvnw -Plogs,capsule
- java -jar target/*-all.jar
- ./mvnw -Plogs,assembly
- java -jar target/*-all.jar
- stage: test
name: qualifiers
jdk: openjdk8
script:
- ./mvnw -Pqualifiers,capsule
- java -jar target/*-all.jar
- ./mvnw -Pqualifiers,assembly
- java -jar target/*-all.jar
- stage: deploy
jdk: openjdk8
rvm: 2.6.4
name: GitHub release and GitHub pages deployment
script: skip
if: branch = "master" AND type NOT IN (pull_request)
before_deploy:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ".$TRAVIS_BRANCH" != ".master" ] ; then exit 0 ; fi
- set -e
- cd ${root}
- ./mvnw -Pdocs
- mkdir -p ./target/generated-docs
- cp -Rf ./target/generated-docs/index.html ./target/generated-docs/404.html
deploy:
provider: pages
skip-cleanup: true
# travis encrypt GITHUB_TOKEN=<your github repo token> --add
github-token: "$GITHUB_TOKEN"
keep-history: true
on:
branch: master
local-dir: target/generated-docs
target_branch: gh-pages
cache:
packages: true
directories:
- $HOME/.docker
- $HOME/.gradle
- $HOME/.m2