brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rich...@apache.org
Subject [41/50] [abbrv] brooklyn-client git commit: Add RAT check.
Date Tue, 08 Mar 2016 13:20:14 GMT
Add RAT check.

Example of a run where some files do not have the right header,
to illustrate that the RAT plugin is working:

[INFO] Rat check: Summary of files. Unapproved: 3 unknown: 3 generated: 0 approved: 81 licence.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.739 s
[INFO] Finished at: 2016-02-29T11:42:00+00:00
[INFO] Final Memory: 11M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default-cli) on
project brooklyn-client-cli: Too many files with unapproved license: 3 See RAT report in:
/Users/geoff/go/src/github.com/apache/brooklyn-client/target/rat.txt -> [Help 1]


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/90e0163a
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/90e0163a
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/90e0163a

Branch: refs/heads/master
Commit: 90e0163a4fa72d62c8a9be07c0a15580f43c73e8
Parents: 195403f
Author: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Authored: Mon Feb 29 12:00:17 2016 +0000
Committer: Geoff Macartney <geoff.macartney@cloudsoftcorp.com>
Committed: Mon Feb 29 12:00:17 2016 +0000

----------------------------------------------------------------------
 pom.xml            | 18 ++++++++++++++++++
 release/build.sh   | 23 ++++++++++++++++-------
 test/test.sh       | 16 ++++++++++++++++
 test/test_app.yaml | 17 +++++++++++++++++
 4 files changed, 67 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/90e0163a/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 8e175fb..e45b4f5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,6 +72,7 @@
 
                 </executions>
             </plugin>
+
             <plugin>
                 <artifactId>maven-assembly-plugin</artifactId>
                 <version>${maven.assembly.plugin.version}</version>
@@ -88,8 +89,25 @@
                     </goals>
                 </execution>
             </executions>
+            </plugin>
 
+            <plugin>
+                <groupId>org.apache.rat</groupId>
+                <artifactId>apache-rat-plugin</artifactId>
+                <version>0.11</version>
+                <configuration>
+                    <excludes combine.children="append">
+                        <!--
+                            The maven archetype are files "without any degree of creativity".
They are intended
+                            purely as a template to generate a new project for a user, where
upon the user can
+                            write their code within this new project.
+                            The exclusions seem to need to include code that is auto-generated
during a test run.
+                        -->
+                        <exclude>**/br/Godeps/**/*</exclude>
+                    </excludes>
+                </configuration>
             </plugin>
+
         </plugins>
 
     </build>

http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/90e0163a/release/build.sh
----------------------------------------------------------------------
diff --git a/release/build.sh b/release/build.sh
index ba541eb..fb9e187 100755
--- a/release/build.sh
+++ b/release/build.sh
@@ -1,12 +1,21 @@
 #!/bin/sh
+# 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.
 
-#
-# TODO
-#
-# Checks on availability of go coompiler
-# Use godep for resolving dependencies
-# Add some useful comments
-#
 
 #
 # Constants

http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/90e0163a/test/test.sh
----------------------------------------------------------------------
diff --git a/test/test.sh b/test/test.sh
index a044cbc..7f86538 100644
--- a/test/test.sh
+++ b/test/test.sh
@@ -1,4 +1,20 @@
 #!/usr/bin/env bash
+# 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.
 
 declare -a FAILS
 

http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/90e0163a/test/test_app.yaml
----------------------------------------------------------------------
diff --git a/test/test_app.yaml b/test/test_app.yaml
index a5f00c8..f5e9abe 100644
--- a/test/test_app.yaml
+++ b/test/test_app.yaml
@@ -1,3 +1,20 @@
+# 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.
+
 name: Test Tomcat
 location:
   replaceMeWithYourLocation


Mime
View raw message