language: java
cache:
  directories:
  - $HOME/.gradle/caches/modules-2/
  - $HOME/.gradle/wrapper/
  - $HOME/.m2/
  - plugin-maven/build/localMavenRepository/
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr plugin-maven/build/localMavenRepository/com/diffplug/spotless/  
env:
  - NODE_VERSION="6.10.2"
before_install:
  - nvm install $NODE_VERSION
install: true
jdk:
  - openjdk8
  - openjdk11

jobs:
  include:
    - stage: test
      jdk: openjdk8
      script: ./gradlew build --build-cache && ./gradlew npmTest --build-cache

    - stage: test
      jdk: openjdk11
      script: ./gradlew build --build-cache && ./gradlew npmTest --build-cache

language: java
jdk:
  - openjdk8
  - openjdk11
env:
  - NODE_VERSION="6.10.2"
before_install:
  - nvm install $NODE_VERSION
  - bash -c "$(curl -fsSL https://raw.githubusercontent.com/ZacSweers/check-gradle-checksums/c8dc2ae0756a8041e240cdc6fa6c38c256dfeab0/check-gradle-checksums.sh)"
install: true
script:
  - ./gradlew build --build-cache && ./gradlew npmTest --build-cache
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr plugin-maven/build/localMavenRepository/com/diffplug/spotless/
cache:
  directories:
  - $HOME/.gradle/caches/modules-2/
  - $HOME/.gradle/wrapper/
  - $HOME/.m2/
  - plugin-maven/build/localMavenRepository/

Fix extra tests in Travis.
Fix extra tests in Travis.