language: java

jdk:
  - oraclejdk8
  - oraclejdk11

services:
    - docker

env:
  - img=existdb/existdb:latest
  - img=existdb/existdb:release

install:
  - ant develop

before_script:
  - docker cp ./build/*-dev.xar exist-ci:exist/autodeploy
  - docker start exist-ci
  # exist needs time
  - sleep 30
  - docker ps

script:
  - ant test
  - npx cypress run
