language: scala
sudo: true
jdk:
  - openjdk8
  - openjdk11
script:
  - sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck test
before_script:
  - sudo /etc/init.d/mysql stop
  - sudo /etc/init.d/postgresql stop
  - sudo chmod +x /usr/local/bin/sbt
cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt/boot
    - $HOME/.sbt/launchers
    - $HOME/.coursier
matrix:
  include:
  - os: windows
    language: bash
    env: JDK="adopt@1.8.0-222"
    before_script:
    - curl "https://raw.githubusercontent.com/DanySK/Gravis-CI/c8f400623d8f756ef7c/.install-jdk-travis.sh" --output .install-jdk-travis.sh
    - source .install-jdk-travis.sh
    - wget https://raw.githubusercontent.com/paulp/sbt-extras/0ee2dae2eba72efb4a464a5ad255e348696ecda7/sbt && chmod +x ./sbt
    script:
    - ./sbt test

language: scala
sudo: true
jdk:
  - openjdk8
  - openjdk11
script:
  - sbt scalafmtSbtCheck scalafmtCheck test:scalafmtCheck test
before_script:
  - sudo /etc/init.d/mysql stop
  - sudo /etc/init.d/postgresql stop
  - sudo chmod +x /usr/local/bin/sbt
cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt/boot
    - $HOME/.sbt/launchers
    - $HOME/.coursier

Disable Windows test due to unstability
Disable Windows test due to unstability
