This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require all PRs to contain a "Fixes #XXX" comment and a "Signed-off-by:" comment by running the central static checks script. Note that the static checks script will detect if the repository contains golang code and only run those checks if it does. Fixes #12. Signed-off-by: James O. D. Hunt <[email protected]>
- Loading branch information
1 parent
1295bd5
commit 895aad1
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# | ||
# Copyright (c) 2018 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
export tests_repo="github.com/kata-containers/tests" | ||
export tests_repo_dir="$GOPATH/src/$tests_repo" | ||
|
||
clone_tests_repo() | ||
{ | ||
# KATA_CI_NO_NETWORK is (has to be) ignored if there is | ||
# no existing clone. | ||
if [ -d "$tests_repo_dir" -a -n "$KATA_CI_NO_NETWORK" ] | ||
then | ||
return | ||
fi | ||
|
||
go get -d -u "$tests_repo" || true | ||
} | ||
|
||
run_static_checks() | ||
{ | ||
clone_tests_repo | ||
bash "$tests_repo_dir/.ci/static-checks.sh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2018 Intel Corporation | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -e | ||
|
||
cidir=$(dirname "$0") | ||
source "${cidir}/lib.sh" | ||
|
||
run_static_checks |