Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

Commit

Permalink
CI: Enforce checkcommits.
Browse files Browse the repository at this point in the history
checkcommits has been running successfuly for a while now, so disallow
it failing in a CI environment.

Additionally, only run it in a TravisCI environment since it cannot
currently work under SemaphoreCI (due to its restrictive environment).

Fixes #967 (but actually fixed by clearcontainers/tests#64).

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Jun 23, 2017
1 parent f92d50a commit 55eba02
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .ci/ci-pre-checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@
# will be aborted.
#---------------------------------------------------------------------

repo="github.com/clearcontainers/tests/cmd/checkcommits"
go get -d "$repo"
(cd "$GOPATH/src/$repo" && make)
checkcommits \
--need-fixes \
--need-sign-offs \
--body-length 72 \
--subject-length 75 \
--verbose || true
if [ "$TRAVIS" = true ]
then
repo="github.com/clearcontainers/tests/cmd/checkcommits"
go get -d "$repo"
(cd "$GOPATH/src/$repo" && make)
checkcommits \
--need-fixes \
--need-sign-offs \
--body-length 72 \
--subject-length 75 \
--verbose
fi

0 comments on commit 55eba02

Please sign in to comment.