Skipping builds in codeship
Asked Answered
A

2

5

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?

Arithmetic answered 22/5, 2015 at 10:14 Comment(0)
A
13

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]"
Arithmetic answered 22/5, 2015 at 10:24 Comment(0)
L
1

I use a couple of handy aliases, extended from Oh-My-Zsh. My workflow has been improved by adding these to my system;

Create a WIP commit:

alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip--"'

And then create a WIP commit without running CI:

alias gwipskip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit -m "--wip-- --skip-ci"'

Lundell answered 4/8, 2015 at 9:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.