Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skipping builds in codeship

Tags:

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?

like image 572
atw Avatar asked May 22 '15 10:05

atw


2 Answers

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]"
like image 103
atw Avatar answered Nov 18 '22 17:11

atw


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"'

like image 1
RossMc Avatar answered Nov 18 '22 17:11

RossMc