language: clojure

before_install:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"

lein: 2.8.1

jdk:
- oraclejdk8

language: clojure

dist: xenial
services:
  - xvfb

lein: 2.9.1

jdk:
  - openjdk11

Fix Travis CI: use OpenJDK 11
Fix Travis CI: use OpenJDK 11

Before this fix, Travis CI failed
(see https://travis-ci.org/nicokosi/strava-activity-graphs/builds/545088910):

  Installing oraclejdk8
  $ export JAVA_HOME=~/oraclejdk8
  $ export PATH="$JAVA_HOME/bin:$PATH"
  $ ~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"
  install-jdk.sh 2019-05-02
  Expected feature release number in range of 9 to 13, but got: 8
  The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"" failed and exited with 3 during .

Now:
- use OpenJDK 11
- change settings for GUI testing (see https://docs.travis-ci.com/user/gui-and-headless-browsers/)
