File tree Expand file tree Collapse file tree 7 files changed +87
-1
lines changed
Expand file tree Collapse file tree 7 files changed +87
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ install:
4545 - sudo chmod -R og+r /usr/local/include/google/protobuf/
4646 - protoc --version
4747 - go get -u github.com/vbatts/git-validation
48+ - go get -u github.com/kunalkushwaha/ltag
4849 - sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-runc
4950 - sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni
5051 - sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools
@@ -57,6 +58,7 @@ script:
5758 - export GOOS=$TRAVIS_GOOS
5859 - export CGO_ENABLED=$TRAVIS_CGO_ENABLED
5960 - DCO_VERBOSITY=-q script/validate/dco
61+ - script/validate/fileheader
6062 - GOOS=linux script/setup/install-dev-tools
6163 - script/validate/vendor
6264 - go build -i .
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ if ! command -v git-validation; then
2424fi
2525
2626verbosity=" ${DCO_VERBOSITY--v} "
27- GIT_CHECK_EXCLUDE=" ./vendor" git-validation " $verbosity " -run DCO,short-subject,dangling-whitespace
27+ GIT_CHECK_EXCLUDE=" ./vendor:./script/validate/template " git-validation " $verbosity " -run DCO,short-subject,dangling-whitespace
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # Copyright The containerd Authors.
4+
5+ # Licensed under the Apache License, Version 2.0 (the "License");
6+ # you may not use this file except in compliance with the License.
7+ # You may obtain a copy of the License at
8+
9+ # http://www.apache.org/licenses/LICENSE-2.0
10+
11+ # Unless required by applicable law or agreed to in writing, software
12+ # distributed under the License is distributed on an "AS IS" BASIS,
13+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ # See the License for the specific language governing permissions and
15+ # limitations under the License.
16+
17+
18+ set -eu -o pipefail
19+
20+ if ! command -v ltag; then
21+ >&2 echo " ERROR: ltag not found. Install with:"
22+ >&2 echo " go get -u github.com/kunalkushwaha/ltag"
23+ exit 1
24+ fi
25+
26+ ltag -t script/validate/template --check -v
Original file line number Diff line number Diff line change 1+ # Copyright The containerd Authors.
2+
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
Original file line number Diff line number Diff line change 1+ # Copyright The containerd Authors.
2+
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
Original file line number Diff line number Diff line change 1+ /*
2+ Copyright The containerd Authors.
3+
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+
8+ http://www.apache.org/licenses/LICENSE-2.0
9+
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
15+ */
16+
Original file line number Diff line number Diff line change 1+ # Copyright The containerd Authors.
2+
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
You can’t perform that action at this time.
0 commit comments