Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
102 stars 54 forks source link

WIP: Check commit messages with Gnitpick and minor Travis-CI syntax fixes #132

Open ottok opened 4 years ago

JoosuaKoskinen commented 4 years ago

Does what it's supposed to do. But I did notice this at the top of Travis log.

$ python3 ./gnitpick.py
Travis-CI detected, reading git revisions from environment
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
128
Cannot compare , is this a force push?
Gnitpick inspecting git revisions range HEAD~10..HEAD

It was not a force push and the gnitpick tests still worked the same. So the only problem is that it tested many old commit.

ottok commented 4 years ago

That is because of https://github.com/Seravo/gnitpick/blob/master/gnitpick.py#L174-L188 Should we change Gnitpick to check only the last 3 commits instead? Or just one?

JoosuaKoskinen commented 4 years ago

I think it should check 5 at the most. But why is it doing that in the first place? I did not use --force. Why wasn't the range valid?

ottok commented 4 years ago

You can inspect what happened by looking at the build log in https://travis-ci.org/github/Seravo/wordpress/jobs/660968721

$ python3 ./gnitpick.py
Travis-CI detected, reading git revisions from environment
fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
128
Cannot compare , is this a force push?
Gnitpick inspecting git revisions range HEAD~10..HEAD
 commit fb3cec6ef7dece5dd407f8380cd43b84ab3d14c8
 Author: Joosua Koskinen <joosua@seravo.com>
 Date:   Wed Mar 11 10:04:41 2020 +0200

     tEST gnitpickvim test! :) .

You can also clone the Gnitpick repo and push it around to see the output of the Travis-CI env debugger: https://github.com/Seravo/gnitpick/blob/master/.travis.yml

elguitar commented 4 years ago

What's the status on the review?

ottok commented 4 years ago

Changed to WIP status. Gnitpick needs to mature a bit more before this is ready for prime time.