Skip to content

OlegYch/sbt-cached-ci

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Github Build Status Travis Build Status CircleCI Build Status Latest Version

sbt-cached-ci

Incremental sbt builds for CI environments.

The plugin introduces a new task cachedCiTest which calls testQuick and calls clean once a day.

Usage

Supported sbt version - 1.x.

  1. In ./project/plugins.sbt add:
    addSbtPlugin("org.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

Note that Github support relies on forked cache action (pending actions/cache#233).

CircleCI currently does not support proper caching, please vote here https://ideas.circleci.com/ideas/CCI-I-1453.

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.

About

Incremental sbt builds for CI environments.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages