Skip to content

Commit

Permalink
Add license and/or exclusion as appropriate to pass RAT check (#4)
Browse files Browse the repository at this point in the history
Co-authored-by: Blake Bender <[email protected]>
  • Loading branch information
pdxcodemonkey and pdxcodemonkey authored Jan 14, 2021
1 parent 609ca76 commit a7a38e2
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ratignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ package-list
.*\.md
.*\.md.erb

# docker/
bellsoft.repo

# contrib/pdxautoserializer
# public domain sources
CPPDictionary.hpp
Expand Down
9 changes: 9 additions & 0 deletions ci/lib/templates.lib.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ cmake ../source -DCMAKE_EXPORT_COMPILE_COMMANDS=ON >>${log} 2>&1 || (cat ${log};
jq -r '.[].file' compile_commands.json | sort | uniq | grep -v $(pwd) | xargs clang-format --dry-run -Werror
(@- end @)

(@ def rat_check_bash_task(): -@)
set -ueo pipefail
export GEODE_HOME=$(pwd)/geode/expanded/apache-geode-$(cat geode/version)
log=$(mktemp)
cd build
cmake ../source -DUSE_RAT=ON >>${log} 2>&1 || (cat ${log}; exit 1)
cmake --build . --target rat-check
(@- end @)

(@ def packer_build_bash_task(build): -@)
set -ueo pipefail
cd source/packer
Expand Down
2 changes: 2 additions & 0 deletions ci/lib/templates.lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#@ "run_net_legacy_integration_tests",
#@ "clang_tidy_bash_task",
#@ "clang_format_bash_task",
#@ "rat_check_bash_task",
#@ "packer_build_bash_task",
#@ "instance_create_bash_task",
#@ "instance_delete_bash_task",
Expand Down Expand Up @@ -442,6 +443,7 @@ plan:
steps:
- #@ bash_task("clang-tidy", [{"name":"source"}, {"name":"geode"}], [{"name":"build"}], clang_tidy_bash_task(), "clang-tools-image")
- #@ bash_task("clang-format", [{"name":"source"}, {"name":"geode"}], [{"name":"build"}], clang_format_bash_task(), "clang-tools-image")
- #@ bash_task("rat-check", [{"name":"source"}, {"name":"geode"}], [{"name":"build"}], rat_check_bash_task(), "clang-tools-image")
#@ end

---
Expand Down
16 changes: 16 additions & 0 deletions docker/windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# escape=`

# .NET 3.5 is required for NUnit 2.6 only.
Expand Down
15 changes: 15 additions & 0 deletions packer/windows/2016/aws/startup.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<powershell>
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

write-output "Running User Data Script"
write-host "(host) Running User Data Script"
Expand Down
15 changes: 15 additions & 0 deletions packer/windows/2019/aws/startup.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
<powershell>
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

write-output "Running User Data Script"
write-host "(host) Running User Data Script"
Expand Down

0 comments on commit a7a38e2

Please sign in to comment.