You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by st...@apache.org on 2023/01/30 01:21:42 UTC

[openwhisk-runtime-java] branch master updated: add GHA badge; remove travis configs and scripts (#146)

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

style95 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-java.git


The following commit(s) were added to refs/heads/master by this push:
     new cf6e84a  add GHA badge; remove travis configs and scripts (#146)
cf6e84a is described below

commit cf6e84a891993e01e2bfffe7ec336b174050fb41
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Sun Jan 29 20:21:37 2023 -0500

    add GHA badge; remove travis configs and scripts (#146)
---
 .travis.yml             | 61 ------------------------------------------------
 README.md               |  3 ++-
 tools/travis/build.sh   | 43 ----------------------------------
 tools/travis/publish.sh | 62 -------------------------------------------------
 tools/travis/setup.sh   | 34 ---------------------------
 tools/travis/test.sh    | 30 ------------------------
 6 files changed, 2 insertions(+), 231 deletions(-)

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b66aa56..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# 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.
-#
-
-sudo: required
-dist: xenial
-language: java
-jdk: openjdk8
-services:
-- docker
-# required to support multi-stage build
-addons:
-   apt:
-     packages:
-       - docker-ce
-notifications:
-  email: false
-  webhooks:
-    urls:
-      # travis2slack webhook to enable DMs on openwhisk-team.slack.com to PR authors with TravisCI results
-      secure: "xR0NyWJucuOF8Zmkig0dk6JLxKP5IEuDYCj5Mx2vzyZTqLY85p5l5e3g1Id9xc8H7dDDZxZpxZAO/bd+15Kdtyz7RasJ8ca/AFmSBFLl39CbpfAJumaElayMoVLAGPcR1lCC07H6AVunENuPL16e/jgPmMl5QPo2Fmz7V++n/SBTgJzUXqgbPsB/If7DLphvASI8/pdFethIZsykf4mXfAmvxiDctZYhCo7/BE9g8euuQ2PnTtZzI0c5uZXKizODtTIyF3ZCRddzqHwWmoSAeHX9rkf0Q3AkTcOE20hiWoaqMnr/yr/gecCNMqF2onop6lkfZXFxRZbvDRDL0LGBWM2LRgkYfvU0j3uVpVHHnexUPWfwE+EIhMtdYismp23iUcZTd4uyo5pSMNmLgr8rxs2u7sIxMi31eshRo8QDim8sBMHr04iLdRPlvzu7wqWu97nhKWfxpAzZEQpzYMoglGiKg2U4l [...]
-
-before_install:
-- "./tools/travis/setup.sh"
-install: true
-script:
-- "./tools/travis/build.sh && ./tools/travis/test.sh"
-deploy:
-  - provider: script
-    script: "./tools/travis/publish.sh openwhisk ${TRAVIS_TAG%@*} ${TRAVIS_TAG##*@}"
-    on:
-      tags: true
-      all_branches: true
-      repo: apache/openwhisk-runtime-java
-  - provider: script
-    script: "./tools/travis/publish.sh openwhisk 8 nightly"
-    on:
-      branch: master
-      repo: apache/openwhisk-runtime-java
-  - provider: script
-    script: "./tools/travis/publish.sh openwhisk 8a nightly"
-    on:
-      branch: master
-      repo: apache/openwhisk-runtime-java
-env:
-  global:
-    - secure: "WRzgr1fgdA4wntnPNeJQlf//Wk47nc7lAusbF5IUMEYhYC+b/xarVgaK4ozQYieleoB5o9toPdheoCXYfRV2M/qmO9o9FmdCPAJDQx5nkjEqCK2/pfYkU7Ax+EOO1TcKcu1Ea00MsDNZMS8fnuH9rIBbF2LfsCHcfdLgdo4HWApejZw+tp0Lzvmi6nEPg4EWCpM5tfQwwEv3o2GWiEiWRQIQV+YDlmxd+nk++EWmbBwuesF+VN3MIWOpNyX8rCdum1bbPSlEiF+Lcyfrb0/nFgoddgScg6PdrfQSgxe7yvz4mW6ZVBDg0xX64DkTTeSICX+atc84lVfp+QmD5+QaORkmxqTZ5VDsSwzeDCYVDMNrVatkNtXoMiL+73naRZvfHeeqYRSUEGX67snJNlRxgt3t7QL+71y6NerTEnLGGlzP++5GwkjXVnfTuMsPFcfnqUL9sxkjayzp0hAJSA/MtAjgPk62X [...]
-    - secure: "qK7XzPegJ3nTZF9VINaYuneexUvhrEKm3LEw4Coga0No2FbUqSPjCyqH5sim8bSrmiTCAtJAn8isKh9us+Bw0X19SepJK7IlgJvib8otOKLrFGbGBxxj2LJYtweLSd63ZWRfeR/HJr0ASEWpRz2syVG4fflX5//dZARQ0U6q/EVrLDrILWA7oFX6sh6nTeQf6+VSWs2bpDmawABcy0sktj8I64dweio1JHsChSIVToHT8O/xiTS75kkxyBkf9B46P0ZNlNJYCqtnmN8zOonAuvtCFl+/jwWo0LYApHvsFI359goS/vL9Qoq1lCSwzW/jmY+pb/lHiAtUDQ3f6XsggQ6VjekGcEE+PBoijQHnmmJqZTg75b4UTsTsspSDu+32wxFxJFiR9wvqr4UiZxYgfkVj2OmKHx1qdUSSVm4iZeSM7M1aWQGXvW7wvpQZHKAEtLy5rtBAd9GShr8gA3VV24vZa5Jwe [...]
diff --git a/README.md b/README.md
index c7ce6ca..18ba2d8 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,8 @@
 
 # Apache OpenWhisk runtimes for java
 
-[![Build Status](https://travis-ci.com/apache/openwhisk-runtime-java.svg?branch=master)](https://travis-ci.com/github/apache/openwhisk-runtime-java)
+[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
+[![Continuous Integration](https://github.com/apache/openwhisk-runtime-java/actions/workflows/ci.yaml/badge.svg)](https://github.com/apache/openwhisk-runtime-java/actions/workflows/ci.yaml)
 
 ## Changelogs
 - [Java 8 CHANGELOG.md](core/java8/CHANGELOG.md)
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
deleted file mode 100755
index 8ee3c2b..0000000
--- a/tools/travis/build.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/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.
-#
-
-set -ex
-
-# Build script for Travis-CI.
-
-SCRIPTDIR=$(cd $(dirname "$0") && pwd)
-ROOTDIR="$SCRIPTDIR/../.."
-WHISKDIR="$ROOTDIR/../openwhisk"
-UTILDIR="$ROOTDIR/../openwhisk-utilities"
-
-export OPENWHISK_HOME=$WHISKDIR
-
-# run scancode using the ASF Release configuration
-cd $UTILDIR
-scancode/scanCode.py --config scancode/ASF-Release.cfg $ROOTDIR
-
-# Build OpenWhisk deps before we run tests
-cd $WHISKDIR
-TERM=dumb ./gradlew install
-# Mock file (works around bug upstream)
-echo "openwhisk.home=$WHISKDIR" > whisk.properties
-echo "vcap.services.file=" >> whisk.properties
-
-# Build runtime
-cd $ROOTDIR
-TERM=dumb ./gradlew distDocker
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
deleted file mode 100755
index c7bbc41..0000000
--- a/tools/travis/publish.sh
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/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.
-#
-
-set -eux
-
-# Build script for Travis-CI.
-
-SCRIPTDIR=$(cd $(dirname "$0") && pwd)
-ROOTDIR="$SCRIPTDIR/../.."
-WHISKDIR="$ROOTDIR/../openwhisk"
-
-export OPENWHISK_HOME=$WHISKDIR
-
-IMAGE_PREFIX=$1
-RUNTIME_VERSION=$2
-IMAGE_TAG=$3
-
-if [ ${RUNTIME_VERSION} == "8" ]; then
-  RUNTIME="java8"
-elif [ ${RUNTIME_VERSION} == "10" ]; then
-  RUNTIME="java10"
-elif [ ${RUNTIME_VERSION} == "8a" ]; then
-  RUNTIME="java8actionloop"
-fi
-
-if [[ ! -z ${DOCKER_USER} ]] && [[ ! -z ${DOCKER_PASSWORD} ]]; then
-docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"
-fi
-
-if [[ ! -z ${RUNTIME} ]]; then
-TERM=dumb ./gradlew \
-core:${RUNTIME}:distDocker \
--PdockerRegistry=docker.io \
--PdockerImagePrefix=${IMAGE_PREFIX} \
--PdockerImageTag=${IMAGE_TAG}
-
-  # if doing nightly also push a tag with the hash commit
-  if [ ${IMAGE_TAG} == "nightly" ]; then
-  SHORT_COMMIT=`git rev-parse --short HEAD`
-  TERM=dumb ./gradlew \
-  core:${RUNTIME}:distDocker \
-  -PdockerRegistry=docker.io \
-  -PdockerImagePrefix=${IMAGE_PREFIX} \
-  -PdockerImageTag=${SHORT_COMMIT}
-  fi
-
-fi
diff --git a/tools/travis/setup.sh b/tools/travis/setup.sh
deleted file mode 100755
index 6315f1a..0000000
--- a/tools/travis/setup.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/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.
-#
-
-set -e
-
-# Build script for Travis-CI.
-
-SCRIPTDIR=$(cd $(dirname "$0") && pwd)
-ROOTDIR="$SCRIPTDIR/../.."
-HOMEDIR="$SCRIPTDIR/../../../"
-
-# clone OpenWhisk utilities repo. in order to run scanCode
-cd $HOMEDIR
-git clone https://github.com/apache/openwhisk-utilities.git
-
-# clone main openwhisk repo. for testing purposes
-git clone --depth=1 https://github.com/apache/openwhisk.git openwhisk
-cd openwhisk
-./tools/travis/setup.sh
diff --git a/tools/travis/test.sh b/tools/travis/test.sh
deleted file mode 100755
index a5b249d..0000000
--- a/tools/travis/test.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/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.
-#
-
-set -ex
-
-# Build script for Travis-CI.
-
-SCRIPTDIR=$(cd $(dirname "$0") && pwd)
-ROOTDIR="$SCRIPTDIR/../.."
-WHISKDIR="$ROOTDIR/../openwhisk"
-
-export OPENWHISK_HOME=$WHISKDIR
-cd ${ROOTDIR}
-TERM=dumb ./gradlew :tests:checkScalafmtAll
-TERM=dumb ./gradlew :tests:test