language: java

jdk:
  - oraclejdk8
  - oraclejdk11

# Tell Travis that we are using Docker.
services:
  - docker

# Always test against current and upcoming releases.
env:
  - img=existdb/existdb:latest
  - img=existdb/existdb:release

install:
  - ant develop

# take the .xar created above and install and deploy in a clean eXist-db instance.
before_script:
  - docker cp ./build/*-dev.xar exist-ci:exist/autodeploy
  - docker start exist-ci
  # exist needs time
  - sleep 30
  - docker ps
