Lint your messages
wget link_here
make build
<- to buildmake install
<- to install
gitector init
-
gitector
– Test commits from current branch compared to master -
gitector master -l 10
– Test last 10 commits from master -
gitector feature-1..long-last-branch
– Test new commits from branch feature-1 with long-last-branch -
gitector ..master -o html
– Test commits from current branch to master with html output
Add line gitector -id
to .git/COMMIT_EDITMSG
Run gitector
by default it will compare new commits against master.
stages:
- gitector
- build
- deploy
before_script:
- wget link > gitector
gitector:
image: gitector/gitector
script:
- git fetch
- gitector
only:
refs:
- merge_requests
- master
- web
go build
./test.sh
- Missing package
- Run
go get ${missing package}
eg.go get github.com/stretchr/testify
- Run
./gitector --help