forked from TechEmpower/gemini
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 1.07 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
language: java
# https://travis-ci.community/t/error-installing-oraclejdk8-expected-feature-release-number-in-range-of-9-to-14-but-got-8/3766/6
dist: trusty
hosts:
- TRAVIS
jdk:
- oraclejdk11
install: mvn clean compile install -Dgpg.skip
before_script:
- mvn archetype:update-local-catalog
- >
mvn archetype:generate -DarchetypeRepository=local -DarchetypeCatalog=local
-DarchetypeGroupId=com.techempower -DarchetypeArtifactId=gemini-resin-archetype
-Dpackage=foo.test -DartifactId=test-artifact-id -Dversion=1.0
-DmachineName=TRAVIS -DinteractiveMode=false
- cd test-artifact-id && mvn clean compile war:war
- curl -sL http://caucho.com/download/resin-4.0.63.tar.gz | tar xz --strip-components=1
- rm -rf webapps/*
- cp target/test-artifact-id-1.0.war webapps/ROOT.war
script:
- java -jar lib/resin.jar console &
- sleep 10
- >
n=1;
while true; do
curl localhost:8080 && break || {
if [[ $n -lt 10 ]]; then
((n++))
sleep 10
else
exit 1
fi
}
done;