# Config file to set up TestFX correctly.
# Adapted from https://github.com/TestFX/TestFX/wiki/Travis-CI

language: java

jdk: openjdk13

services:
  - xvfb

before_install:
  - sudo apt update
  - sudo apt install openjfx
  - chmod +x ./gradlew
  - export DISPLAY=:99.0

install: true

script:
 - ./gradlew check

# Generate coverage report and upload to codecov
after_success:
  - ./gradlew jacocoTestReport
  - bash <(curl -s https://codecov.io/bash)

before_cache:
 - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
 - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
 - rm -f  $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
 - rm -f  $HOME/.gradle/caches/*/fileHashes/fileHashes.lock

cache:
 directories:
   - $HOME/.gradle/caches/
   - $HOME/.gradle/wrapper/
# Config file to set up TestFX correctly.
# Adapted from https://github.com/TestFX/TestFX/wiki/Travis-CI

language: java

jdk: openjdk8

services:
  - xvfb

before_install:
  - sudo apt update
  - sudo apt install openjfx
  - chmod +x ./gradlew
  - export DISPLAY=:99.0

install: true

script:
 - ./gradlew check

# Generate coverage report and upload to codecov
after_success:
  - ./gradlew jacocoTestReport
  - bash <(curl -s https://codecov.io/bash)

before_cache:
 - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
 - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
 - rm -f  $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
 - rm -f  $HOME/.gradle/caches/*/fileHashes/fileHashes.lock

cache:
 directories:
   - $HOME/.gradle/caches/
   - $HOME/.gradle/wrapper/
Revert "Switch to Java 13"
Revert "Switch to Java 13"

This reverts commit 9c83c108
