This repository has been archived by the owner on Jun 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* scripts: re organize by verify / update verbs * setup circleci * Hardcode the locale to get a stable sort
- Loading branch information
1 parent
ec569e3
commit 8625647
Showing
10 changed files
with
118 additions
and
40 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,46 @@ | ||
version: 2 | ||
|
||
templates: | ||
job_template: &job_template | ||
docker: | ||
- image: golang:1.10 | ||
working_directory: /go/src/github.com/DataDog/pupernetes | ||
|
||
jobs: | ||
build: | ||
<<: *job_template | ||
steps: | ||
- checkout | ||
- run: | ||
name: build | ||
command: make | ||
|
||
tests: | ||
<<: *job_template | ||
steps: | ||
- checkout | ||
- run: | ||
name: run tests | ||
command: make check | ||
|
||
verify: | ||
<<: *job_template | ||
steps: | ||
- checkout | ||
- run: | ||
name: verify-gofmt | ||
command: make verify-gofmt | ||
- run: | ||
name: verify-docs | ||
command: make verify-docs | ||
- run: | ||
name: verify-license | ||
command: make verify-license | ||
|
||
workflows: | ||
version: 2 | ||
build_test_verify: | ||
jobs: | ||
- tests | ||
- verify | ||
- build |
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
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
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,28 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
set -o pipefail | ||
set -e | ||
|
||
cd $(dirname $0)/../.. | ||
|
||
make gen-license | ||
|
||
DIFF=$(git --no-pager diff LICENSE-3rdparty.csv) | ||
if [[ "${DIFF}x" != "x" ]] | ||
then | ||
echo "License outdated:" >&2 | ||
git --no-pager diff LICENSE-3rdparty.csv >&2 | ||
exit 2 | ||
fi | ||
|
||
DIFF=$(git ls-files docs/ --exclude-standard --others) | ||
if [[ "${DIFF}x" != "x" ]] | ||
then | ||
echo "License removed:" >&2 | ||
echo ${DIFF} >&2 | ||
exit 2 | ||
fi | ||
|
||
exit 0 |