Skip to content

Commit e7afd1a

Browse files
committed
Add Integration Tests for multiple FusionDB / eXist-db platforms
1 parent 5589e1b commit e7afd1a

File tree

2 files changed

+48
-3
lines changed

2 files changed

+48
-3
lines changed

.travis.yml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,50 @@ language: java
22

33
os:
44
- linux
5-
- osx
65

7-
osx_image: xcode11
6+
jdk:
7+
- openjdk8
8+
9+
services:
10+
- docker
11+
12+
jobs:
13+
include:
14+
- name: Linux / FusionDB Server Nightly
15+
os: linux
16+
env:
17+
- FS_API_PORT=4059
18+
- DOCKER_TEST_IMAGE=repo.evolvedbinary.com:9543/evolvedbinary/fusiondb-server:nightly
19+
script: mvn verify -Ddocker.username=$FDB_NIGHTLY_DOCKER_USER -Ddocker.password=$FDB_NIGHTLY_DOCKER_PASS -Ddocker.test.port=$FS_API_PORT -Ddocker.test.image=$DOCKER_TEST_IMAGE -B
20+
21+
- name: Linux / FusionDB Server 1.0.0-ALPHA2
22+
os: linux
23+
env:
24+
- FS_API_PORT=4059
25+
- DOCKER_TEST_IMAGE=repo.evolvedbinary.com:9443/evolvedbinary/fusiondb-server:1.0.0-ALPHA2
26+
script: mvn verify -Ddocker.username=$FDB_DOCKER_USER -Ddocker.password=$FDB_DOCKER_PASS -Ddocker.test.port=$FS_API_PORT -Ddocker.test.image=$DOCKER_TEST_IMAGE -B
27+
28+
- name: Linux / eXist-db 5.0.0
29+
os: linux
30+
env:
31+
- FS_API_PORT=8080
32+
- DOCKER_TEST_IMAGE=existdb/existdb:5.0.0
33+
34+
- name: Linux / eXist-db 5.2.0
35+
os: linux
36+
env:
37+
- FS_API_PORT=8080
38+
- DOCKER_TEST_IMAGE=existdb/existdb:5.2.0
39+
40+
- name: Linux / eXist-db Nightly
41+
os: linux
42+
env:
43+
- FS_API_PORT=8080
44+
- DOCKER_TEST_IMAGE=existdb/existdb:latest
45+
46+
install: mvn install -Ddocker.skip=true -Dexec.skip=true -DskipTests=true -Dmaven.javadoc.skip=true -B -V
47+
48+
script: mvn verify -Ddocker.test.port=$FS_API_PORT -Ddocker.test.image=$DOCKER_TEST_IMAGE -B
849

950
cache:
1051
directories:

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,11 @@
154154
<executable>curl</executable>
155155
<arguments>
156156
<argument>-v</argument>
157+
<argument>--fail</argument>
157158
<argument>-X</argument>
158159
<argument>PUT</argument>
160+
<argument>-H</argument>
161+
<argument>Content-Type: application/octet-stream</argument>
159162
<argument>--data-binary</argument>
160163
<argument>@${project.build.directory}/${package-final-name}.xar</argument>
161164
<argument>http://admin:@localhost:${docker.test.port}/exist/rest/db/${package-final-name}.xar</argument>
@@ -172,10 +175,11 @@
172175
<executable>curl</executable>
173176
<arguments>
174177
<argument>-v</argument>
178+
<argument>--fail</argument>
175179
<argument>-X</argument>
176180
<argument>POST</argument>
177181
<argument>-H</argument>
178-
<argument>application/xml</argument>
182+
<argument>Content-Type: application/xml</argument>
179183
<argument>--data-binary</argument>
180184
<argument>@${project.build.testOutputDirectory}/deploy-xar.xq.xml</argument>
181185
<argument>http://admin:@localhost:${docker.test.port}/exist/rest/db/</argument>

0 commit comments

Comments
 (0)