version: '{build}'
max_jobs: 4
skip_tags: true
clone_depth: 2
branches:
  except:
    - gh-pages
image:
- 'Visual Studio 2017'
- 'Visual Studio 2019'
environment:
  JAVA_OPTS: '-Xms512m -Xmx2g -XX:+TieredCompilation -XX:TieredStopAtLevel=1'
  matrix:
  - JAVA_HOME: 'C:\Program Files\Java\jdk1.8.0'
    PATH: '%JAVA_HOME%\bin;%PATH%'
  - JAVA_HOME: 'C:\Program Files\Java\jdk11'
    PATH: '%JAVA_HOME%\bin;%PATH%'
cache:
- '%USERPROFILE%\.m2\repository'
install:
- cmd: 'java -version'
build_script:
- mvnw.cmd -V -B -ff install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Dmaven.deploy.skip=true
test_script:
- mvnw.cmd -V -B -ff verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Dmaven.deploy.skip=true
matrix:
  fast_finish: true

version: '{build}'
max_jobs: 4
skip_tags: true
clone_depth: 2
branches:
  except:
    - gh-pages
image:
- 'Visual Studio 2019'
environment:
  JAVA_OPTS: '-Xms512m -Xmx2g -XX:+TieredCompilation -XX:TieredStopAtLevel=1'
  matrix:
  - JAVA_HOME: 'C:\Program Files\Java\jdk11'
    PATH: '%JAVA_HOME%\bin;%PATH%'
cache:
- '%USERPROFILE%\.m2\repository'
install:
- cmd: 'java -version'
build_script:
- mvnw.cmd -V -B -ff install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Dmaven.deploy.skip=true
test_script:
- mvnw.cmd -V -B -ff verify -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Dmaven.deploy.skip=true
matrix:
  fast_finish: true

Reduce load on AppVeyor and only build Java 11/VS2019
Reduce load on AppVeyor and only build Java 11/VS2019
