You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by hs...@apache.org on 2020/10/27 04:45:26 UTC

[sling-slingpackager] branch travisBuild created (now 0de12d9)

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

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


      at 0de12d9  Creating travis-ci scripts for packaging and release management.

This branch includes the following new commits:

     new 0de12d9  Creating travis-ci scripts for packaging and release management.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-slingpackager] 01/01: Creating travis-ci scripts for packaging and release management.

Posted by hs...@apache.org.
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

commit 0de12d937a26dd6b0645c724c8ad4b5cac626c62
Author: Henry Saginor <hs...@gmail.com>
AuthorDate: Mon Oct 26 21:44:45 2020 -0700

    Creating travis-ci scripts for packaging and release management.
---
 .travis.yml           | 37 +++++++++++++++++++++++++++++++++++++
 tools/travis/build.sh | 20 ++++++++++++++++++++
 tools/travis/setup.sh | 22 ++++++++++++++++++++++
 3 files changed, 79 insertions(+)

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..53c5204
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,37 @@
+#
+# 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.
+#
+
+language: node_js
+node_js:
+- '8'
+- '10'
+- '11'
+- '12'
+- 'stable'
+cache: npm
+sudo: required
+services:
+- docker
+before_install:
+- cd $TRAVIS_BUILD_DIR
+install:
+- cd $TRAVIS_BUILD_DIR
+- "./tools/travis/setup.sh"
+- cd $TRAVIS_BUILD_DIR
+script:
+- cd $TRAVIS_BUILD_DIR
+- "./tools/travis/build.sh"
\ No newline at end of file
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
new file mode 100644
index 0000000..cda60c5
--- /dev/null
+++ b/tools/travis/build.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+#
+# 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.
+#
+
+# Build script for Travis-CI.
\ No newline at end of file
diff --git a/tools/travis/setup.sh b/tools/travis/setup.sh
new file mode 100644
index 0000000..055de17
--- /dev/null
+++ b/tools/travis/setup.sh
@@ -0,0 +1,22 @@
+#!/bin/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.
+#
+
+# install node and npm
+sudo apt-get -y install nodejs npm
+
+npm install
\ No newline at end of file