-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
142 lines (142 loc) · 6.27 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
notifications:
email: false
git:
quiet: true
depth: false
env:
global:
- TERM=dumb
- secure: "ly36768fotI0oeMXXHBrf3aVWGLbgTofFA1AcXj/I0ToVk+I5ecR/JugXu344qoCbBWlZm2PUofkXkd7YtSdbtlJeNemKlV+nF4P5KXqKwZJXzzIh9lcN+cntAwFBZ9QGMDyk/ku6kaUN5akgUSwg9WFsjPMBO6QScJitmwE95TXq92jmEmLlGFEcjuqLol3NRemjcyu2T0BYsOeZZ5SrkMpdZvq031FpJCR1c+mL9rkne6D6caUnHSVS2jBry//bfsVHux+JFOI1QDeuQXgNwUCsLLCH1pTcByTcWMNS63yI1nc8JH/DBmLmNSOA2Zun8m49tgnDpmTPvWtjLvC+F6D+PxjldSpq3beXGRhzi23SVAJ/JfuH+cx+cIQF8wCAfB7ZijYPA7p8VtU4oftyQZPaNdcIpjooEwfytIp3p90iITeScZDggxOk/Uez6lm1g/sHOJ+bdAAb2FAd/AWocwUXMQgSywQTmTZEb6pHt5CQHbZ8QNWhj6qk50/YQFQ2yc4YwREqbxghx3X4HduwAE9OIDnXFEZPtyFA0fjtD2puQP07ml8+s6DrTpY0TqUiR2VNgQret8vOHd/YqNTiZj0UrJqvp7ONbdogxMUDVI6ppIQAQl3lV8HSPoPbs6qj5PPfah3zjjiixCf9qIO3NBLgfAHedo+lLX3iR/D3lA="
- secure: "NZEPLyHf31v1v5sBKJvkiO3kCnHLTjkKEZlBVfK/rDfBDdXNRulIpSJAr2ABa0SLmwo6AI1OcNK5fN76JBPBEXFm7gHxgJkNj5f0NJepYYOQ0wIkps4z4TexsIubsbfg4z2uW2EDhiyke7JVnDVSrTJ/z8a3d8SGWRxZqNXYe4gxncvzKxQmZTMpX7YiqW/vyxfMBiRwXi1znc5P0uMjri+Lhcpn2iTAguTVBKyMNjTFG4J8sDyeY+Nw7h3Jwelp1wh6vthFDsD41MzmhYKnwUBiwNXs2QOup8AAqBeMfXhm1ByLuoEgwRyInJd4RhwBbEH4xSrtn9ltOSDV6oAj+iwxnWzz1uWrov6zBHn8cnVw1rVIhQBXYEqfR66fj7TJ6cBfogFCHo1mkaXEvnG7qC0AQFeVTXKZ0kmDytad3vBh2AKUFUPwHz29VKgnjD/+xqEdTlk42m+bSy5XD/xv1cbedxogfnuFlipGhcuzZnvD26B2zXbFamSS8iI6kpCmrrDoVeYSyChBw5whzgBBk2afNZ2SVNzuyg+1QeY/ubGSbaIrx7/hkmYk7caURQEfZm4yoknWp6A85v1+iIff996q0EcVzHLV+NLgH+QTIH76MciHvouWPUSSk8WVgTtyor0/DUPNMeOrTo2gTpxtryYjC6XxfGUUxJ8SccwXkTI="
language: java
jdk: openjdk8
python: 3.7
install: true
addons:
apt:
packages:
- python3-pip
- unzip
- curl
before_install:
- mkdir -p $HOME/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- pip3 install --user --upgrade pip setuptools
- pip install --user --upgrade httpie
- #
- |
if [ ! -f ${HOME}/.local/daggerok/bash-functions/master/main.bash ] ; then
mkdir -p ${HOME}/.local/daggerok/bash-functions/master
curl -s https://raw.githubusercontent.com/daggerok/bash-functions/master/main.bash > ${HOME}/.local/daggerok/bash-functions/master/main.bash
fi
source ${HOME}/.local/daggerok/bash-functions/master/main.bash
stop_any 3000 5000 80 8080 5432 5672 27017
jobs:
include:
- stage: test
name: openjdk11 - kotlin-coroutines-examples
jdk: openjdk11
script: bash $TRAVIS_BUILD_DIR/kotlin-coroutines-examples/gradlew -b $TRAVIS_BUILD_DIR/kotlin-coroutines-examples/build.gradle.kts
- stage: test
name: build root and docs
script:
#- >
# bash gradlew clean asciidoctor docs \
# -Dorg.ajoberstar.grgit.auth.username=$GITHUB_USERNAME \
# -Dorg.ajoberstar.grgit.auth.password=$GITHUB_PASSWORD || true
- bash $TRAVIS_BUILD_DIR/gradlew -b $TRAVIS_BUILD_DIR/docs/build.gradle clean asciidoctor
- bash $TRAVIS_BUILD_DIR/gradlew >/dev/null 2>&1
- bash $TRAVIS_BUILD_DIR/mvnw >/dev/null 2>&1
- stage: test
name: kotlin-netty gradle
script:
- cd $TRAVIS_BUILD_DIR
- ./gradlew
- bash $TRAVIS_BUILD_DIR/kotlin-netty/netty-server/build/install/netty-server/bin/netty-server --port=8000 &
- wait_for 8000
- bash $TRAVIS_BUILD_DIR/kotlin-netty/netty-client/build/install/netty-client/bin/netty-client --port=8000 --request=ololo
- stage: test
name: kotlin-netty maven
script:
- ./mvnw
- ls -lah $TRAVIS_BUILD_DIR/kotlin-netty/netty-client/target/
- java -jar $TRAVIS_BUILD_DIR/kotlin-netty/netty-server/target/netty-server-*-all.jar --port=8000 &
- wait_for 8000
- java -jar $TRAVIS_BUILD_DIR/kotlin-netty/netty-client/target/netty-client-*-all.jar --port=8000 --host=127.0.0.1 --request=trololo
- stop_any 8000 8080 80
- stage: test
name: kotlin-coroutines-echo-ehlo gradle
script:
- cd $TRAVIS_BUILD_DIR
- ./gradlew
- java -jar $TRAVIS_BUILD_DIR/kotlin-coroutines-echo-ehlo/build/libs/*-all.jar
- stop_any 8080 80
- bash $TRAVIS_BUILD_DIR/kotlin-coroutines-echo-ehlo/build/install/kotlin-coroutines-echo-ehlo/bin/kotlin-coroutines-echo-ehlo
- stop_any 8080 80
- >
for arch in \
$(ls $TRAVIS_BUILD_DIR/kotlin-coroutines-echo-ehlo/build/distributions/*.zip) \
; do
unzip -o ${arch} -d /tmp
done;
- bash /tmp/kotlin-coroutines-echo-ehlo-0.0.1/bin/kotlin-coroutines-echo-ehlo
- stop_any 8080 80
- stage: test
name: kotlin-coroutines-echo-ehlo maven
script:
- ./mvnw
- java -jar $TRAVIS_BUILD_DIR/kotlin-coroutines-echo-ehlo/target/*-all.jar
- stop_any 8080 80
- stage: test
name: plain-java-sockets gradle
script:
- cd $TRAVIS_BUILD_DIR
- ./gradlew
- java -jar $TRAVIS_BUILD_DIR/plain-java-sockets/build/libs/*-all.jar
- stop_any 8080 80
- bash $TRAVIS_BUILD_DIR/plain-java-sockets/build/install/plain-java-sockets/bin/plain-java-sockets
- stop_any 8080 80
- >
for arch in \
$(ls $TRAVIS_BUILD_DIR/plain-java-sockets/build/distributions/*.zip) \
; do
unzip -o ${arch} -d /tmp
done;
- bash /tmp/plain-java-sockets-0.0.1/bin/plain-java-sockets
- stop_any 8080 80
- stage: test
name: plain-java-sockets maven
script:
- ./mvnw
- java -jar $TRAVIS_BUILD_DIR/plain-java-sockets/target/*-all.jar
- stop_any 8080 80
- stage: test
name: redis-lettuce gradle
script:
- cd $TRAVIS_BUILD_DIR
- ./gradlew
- java -jar $TRAVIS_BUILD_DIR/redis-lettuce/build/libs/*-all.jar
- stop_any 6379
- bash $TRAVIS_BUILD_DIR/redis-lettuce/build/install/redis-lettuce/bin/redis-lettuce
- stop_any 6379
- >
for arch in \
$(ls $TRAVIS_BUILD_DIR/redis-lettuce/build/distributions/*.zip) \
; do
unzip -o ${arch} -d /tmp
done;
- bash /tmp/redis-lettuce-0.0.1/bin/redis-lettuce
- stop_any 6379
- stage: test
name: redis-lettuce maven
script:
- ./mvnw
- java -jar $TRAVIS_BUILD_DIR/redis-lettuce/target/*-all.jar
- stop_any 6379
cache:
pip: true
packages: true
directories:
- ${HOME}/.m2
- ${HOME}/.gradle
- ~/.local/daggerok