Skip to content

Commit 8c3b409

Browse files
authored
Merge pull request #18 from evolvedbinary/travis-integration-test
Add Integration Tests for multiple FusionDB / eXist-db platforms
2 parents 5589e1b + 191af71 commit 8c3b409

File tree

3 files changed

+52
-3
lines changed

3 files changed

+52
-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:

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Server Side API for [Fusion Studio](https://github.com/evolvedbinary/fusion-studio) written in RESTXQ and XQuery.
66

7+
Compatible with:
8+
* [FusionDB Server](https://fusiondb.com) 1.0.0-ALPHA2 or newer
9+
* [eXist-db](http://www.exist-db.org) 5.0.0 or newer
10+
711
API documentation is here: https://app.swaggerhub.com/apis/evolvedbinary/pebble-api/1.1.0
812

913
## Build Instructions

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)