binkley / sproingk

Spring Boot with Kotlin
Other
1 stars 1 forks source link

Skip CI build for README #31

Closed binkley closed 6 years ago

binkley commented 7 years ago

Narrative

AS A developer I WANT to skip Circle CI builds if no code changed SO THAT builds are faster

Context

See https://circleci.com/blog/circleci-hacks-automate-the-decision-to-skip-builds-using-a-git-hook/.

Acceptance criteria

GIVEN a Circle CI build of Sproink WHEN I push a commit which changes only README.me THEN no CI build takes place because of this commit

binkley commented 7 years ago

This is not a great solution from Circle. It relies on devs adding their own local git hooks scripts. A better solution is to teach Circle CI to handle .ciignore itself, but that's not an option at this time.

binkley commented 7 years ago

Also, the suggested git hook script depends on a BASH which supports mapfile.

binkley commented 7 years ago

The suggested commit hook script did not work.

binkley commented 6 years ago

Skipping README.me and LICENSE.md using CI ignore file.