Search code examples
codeship

Skipping builds in codeship


I am reading the Codeship documentation about skipping builds.

I am struggling to understand the correct format when doing a commit. I want to skip builds because I don't want to go over the 100 free monthly builds. I will run the tests myself instead.

Codeship says that I can --skip-ci or [skip ci] to the commit message. I have tried formats like:

git commit -m "My message" --skip-ci
git commit -m "My message" [skip ci]
git commit -m -skip-ci "My message"

None of these work. What is the right format?


Solution

  • The correct format is to add the method to the string itself:

    git commit -m "My message --skip-ci"
    

    or:

    git commit -m "My message [skip ci]"