Skip to content
This repository was archived by the owner on Dec 15, 2018. It is now read-only.

Commit 9bc0727

Browse files
committed
CI build for executing the TCK against Liberty
1 parent dedcc40 commit 9bc0727

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- stage: test
2020
env: TYPE=tck-tomee
2121
script: .travis/tests.sh ${TYPE}
22+
- stage: test
23+
env: TYPE=tck-liberty
24+
script: .travis/tests.sh ${TYPE}
2225
- stage: deploy
2326
script: skip
2427
deploy:
@@ -29,6 +32,7 @@ jobs:
2932
branch: master
3033
allow_failures:
3134
- env: TYPE=tck-tomee
35+
- env: TYPE=tck-liberty
3236
env:
3337
global:
3438
- secure: "APavkBDaNnz8r5CtZt5acSJQ+4yP1Sut1J9dDqDq2Rb4UVTCrxRt6tSOrO2f2HskKDUhYe+FA5AcQL1X06hCKeDo20APdv3vChYTRgfp3GPgVnvFKMthdQDZesqRKvL3XjJFvShvTmbMt11bh0LVyEs7mLX4Mzg4yt/E1On5rUp2KtodejUHLwON63ERAzJXYZ3e2KuTicnQ48pO+GSHcqBe4ZZuWBaoePUtQ6XILUVEOG1Mz15wuM0CvaiZxSUJni5OtFvv11gV0i1y/pKqqejlbPCIHm8d2BnHuYECffKxH+RAXh/ulcbHciL4w3ZvdRWDSL2f3ZCBe6inAMxLRizZ6cWeNHWIIiqq093Z03Z21P3iYA5ca98jMqoEBK7ME0eSF7SxHeNq+OHZ0rqw0JImAkyLqjQZhf27Rtuun7PRXW/1zeGxg9P2Zl4OCUkZlGH7nMjmrFbEDESaK3fQIpytmEstch+VCMQKO7O/+1AhEW3IYhgnNQCWkKTaY/LbRjjUnovcymtWUKIZEbLYUYx/UeT1nrKWLqpg6LH2v7D7GY16uBNCLMYK70Tpt6LHzJoGspIIg98Zlw98BBEScdPd3XIFxnkytbsxK1AscwwSRGLwz0VJdcQhaMn3vpdYvL37QlJasK5cFP2BETV03aj05GiDbhjtjRhAjzlmWj0="

.travis/tests.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -euo pipefail
44

55
GLASSFISH_URL="http://download.oracle.com/glassfish/5.0.1/nightly/latest-web.zip"
66
WILDFLY_URL="http://download.jboss.org/wildfly/11.0.0.CR1/wildfly-11.0.0.CR1.tar.gz"
7+
LIBERTY_URL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/downloads/wlp/18.0.0.1/wlp-webProfile7-18.0.0.1.zip"
78

89
if [ "${1}" == "glassfish-bundled" ]; then
910

@@ -61,6 +62,17 @@ elif [ "${1}" == "tck-tomee" ]; then
6162
mvn -B -V -Dtck-env=tomee verify
6263
popd
6364

65+
elif [ "${1}" == "tck-liberty" ]; then
66+
67+
curl -s -o wlp.zip "${LIBERTY_URL}"
68+
unzip wlp.zip
69+
cp .travis/wlp-server-template.xml wlp/templates/servers/defaultServer/server.xml
70+
LIBERTY_HOME="$( cd ./wlp/ && pwd )"
71+
mvn -B -V -DskipTests clean install
72+
pushd tck
73+
mvn -B -V -Dtck-env=liberty -Dliberty.home=${LIBERTY_HOME} verify
74+
popd
75+
6476
else
6577
echo "Unknown test type: $1"
6678
exit 1;

.travis/wlp-server-template.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<server description="new server">
3+
4+
<!-- Enable features -->
5+
<featureManager>
6+
<feature>webProfile-7.0</feature>
7+
8+
<!-- For Arquillian -->
9+
<feature>jsp-2.2</feature>
10+
<feature>localConnector-1.0</feature>
11+
12+
</featureManager>
13+
14+
<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
15+
<httpEndpoint id="defaultHttpEndpoint"
16+
httpPort="9080"
17+
httpsPort="9443"/>
18+
19+
<!-- Automatically expand WAR files and EAR files -->
20+
<applicationManager autoExpand="true"/>
21+
22+
<!-- For Arquillian -->
23+
<applicationMonitor updateTrigger="mbean"/>
24+
25+
</server>

0 commit comments

Comments
 (0)