language: java
jdk:
- oraclejdk8
before_cache:
- rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/
install: echo "skip './gradlew assemble' step"
script: ./gradlew --no-daemon
after_success:
- bash <(curl -s https://codecov.io/bash)
addons:
  apt:
    packages:
      - oracle-java8-installer

language: java
jdk:
- oraclejdk8
before_cache:
- rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/
install: true
script: ./gradlew --no-daemon
after_success:
- bash <(curl -s https://codecov.io/bash)
addons:
  apt:
    packages:
      - oracle-java8-installer

Improve skipping of install step in CI
Improve skipping of install step in CI