forked from Edirom/WeGA-WebApp-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (21 loc) · 997 Bytes
/
.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
language: java
services:
- docker
env:
matrix:
- DOCKER_IMAGE=stadlerpeter/existdb
- DOCKER_IMAGE=stadlerpeter/existdb:3.3.0
before_install:
- docker pull ${DOCKER_IMAGE}
- ant xar
- curl http://exist-db.org/exist/apps/public-repo/public/functx-1.0.xar -o build/functx-1.0.xar
- docker create --name exist ${DOCKER_IMAGE}
- for i in build/*.xar ; do docker cp $i exist:/opt/exist/autodeploy/ ; done
- docker start exist
- i=0 ; while (! docker inspect exist | grep -e Status....healthy) ; do if ((i > 30)) ; then echo ' **** timeout ... aborting **** ' ; exit 1 ; else sleep 5 ; echo waiting for container ... ; i=$((i+1)) ; fi ; done
- docker exec -it exist cat webapp/WEB-INF/logs/exist.log
- docker exec -it exist curl "http://127.0.0.1:8080/exist/apps/WeGA-WebApp-lib/testing/run-tests.xql" > report.xml
script:
- grep testsuite report.xml && (! grep 'failures="[1-9]' report.xml) && (! grep 'errors="[1-9]' report.xml)
after_failure:
- cat report.xml