olegych / sbt-cached-ci   2.2.0

GitHub

Incremental sbt builds for CI environments.

Scala versions: 3.x 2.12
sbt plugins: 2.x 1.x

Latest sbt2 Release Latest sbt1 Release

Github Build Status CircleCI Build Status

sbt-cached-ci

Incremental sbt builds for CI environments.

The plugin introduces a new task cachedCiTest which calls either testQuick or clean;testFull depending on cachedCiTestFullPeriod setting.

Usage

Supported sbt versions - 1.5.8+, 2.x.

  1. In ./project/plugins.sbt add:
    addSbtPlugin("io.github.olegych" % "sbt-cached-ci" % latest_version)
    
  2. Configure your CI to cache current directory (preserving full timestamp) and call cachedCiTest task, see samples at .travis.yml, .github/workflows/test.yml or .circleci/config.yml

Period between full test runs can be configured with cachedCiTestFullPeriod setting.

cachedCiTestQuick configures what is executed on every build.

cachedCiTestFull configures what is executed every cachedCiTestFullPeriod.