This is an automated email from the ASF dual-hosted git repository.

hsaginor pushed a commit to branch travisBuild
in repository https://gitbox.apache.org/repos/asf/sling-slingpackager.git


The following commit(s) were added to refs/heads/travisBuild by this push:
     new 0cc4100  Latest work to prep a relelease.
0cc4100 is described below

commit 0cc4100fcfff7b4813dd6396115e0dae131fb4c4
Author: Henry Saginor <[email protected]>
AuthorDate: Thu Dec 24 13:30:03 2020 -0800

    Latest work to prep a relelease.
---
 .gitignore                             |  3 +-
 pom.xml                                | 67 ++++++++++++++++++++++++++++++++++
 test/resources/slingpackager.config.js | 19 ++++++++++
 tools/travis/build.sh                  | 38 ++++++++++++++++++-
 tools/travis/setup.sh                  |  0
 5 files changed, 125 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 2ac76e1..51617da 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 !/bin/
 
-**/node_modules
\ No newline at end of file
+**/node_modules
+**/releases
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..203bc7c
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   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
+
+       https://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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <packaging>pom</packaging>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>23</version>
+  </parent>
+
+  <groupId>org.apache.sling</groupId>
+  <artifactId>sling-slingpackager</artifactId>
+  <name>Apache Sling Slingpackager</name>
+  <version>0.0.5</version>
+
+  <scm>
+    
<connection>scm:git:https://gitbox.apache.org/repos/asf/sling-slingpackager.git</connection>
+    
<developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-slingpackager.git</developerConnection>
+    <url>https://gitbox.apache.org/repos/asf?p=sling-slingpackager.git</url>
+    <tag>HEAD</tag>
+  </scm>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.rat</groupId>
+        <artifactId>apache-rat-plugin</artifactId>
+        <version>0.13</version>
+        <configuration>
+            <excludes>
+                <exclude>**/.git/**</exclude>
+                <exclude>**/.gitignore</exclude>
+                <exclude>node_modules/**</exclude>
+                <exclude>releases/**</exclude>
+                <exclude>**/test-content/**</exclude>
+                <exclude>**/*.yaml</exclude>
+                <exclude>**/*.md</exclude>
+                <exclude>LICENSE</exclude>
+                <exclude>NOTICE</exclude>
+                <exclude>pom.xml</exclude>
+                <exclude>package-lock.json</exclude>
+                <exclude>package.json</exclude>
+            </excludes>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
\ No newline at end of file
diff --git a/test/resources/slingpackager.config.js 
b/test/resources/slingpackager.config.js
index 29f2dbb..203bef9 100644
--- a/test/resources/slingpackager.config.js
+++ b/test/resources/slingpackager.config.js
@@ -1,3 +1,22 @@
+/*
+ * 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.
+ */
+
 module.exports = {
     "vault-properties": {
                "comment": "slingpackager - Test Content",
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
old mode 100644
new mode 100755
index cda60c5..8bdb3cd
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -17,4 +17,40 @@ set -e
 # limitations under the License.
 #
 
-# Build script for Travis-CI.
\ No newline at end of file
+# Build script for Travis-CI.
+
+# Update this when creating a new release
+RELEASE_VERSION="0.0.5"
+
+PACK_NAME="slingpackager"
+SCRIPTDIR=$(cd $(dirname "$0") && pwd)
+ROOTDIR=$(cd $SCRIPTDIR/../.. && pwd)
+RELEASEDIR="$ROOTDIR/releases/$PACK_NAME"
+
+# Scan code
+mvn apache-rat:check
+
+echo "Code scan successful."
+
+# Make new release directory
+if [ -d "$RELEASEDIR" ] 
+then
+    rm -rf $RELEASEDIR
+fi
+mkdir -p $RELEASEDIR
+
+echo "Creating release."
+
+# Copy code to release directory
+cp -p -a $ROOTDIR/bin $RELEASEDIR
+cp -p -a $ROOTDIR/cmds $RELEASEDIR
+cp -p -a $ROOTDIR/utils $RELEASEDIR
+cp -p -a $ROOTDIR/test $RELEASEDIR
+cp package.json LICENSE NOTICE $RELEASEDIR
+
+cd $RELEASEDIR
+npm pack
+
+# Sign the release
+
+
diff --git a/tools/travis/setup.sh b/tools/travis/setup.sh
old mode 100644
new mode 100755

Reply via email to