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/27 01:09:53 UTC

[openwhisk-runtime-go] branch master updated: add GHA status badge; remove travis config & scripts (#182)

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-go.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a231cb  add GHA status badge; remove travis config & scripts (#182)
0a231cb is described below

commit 0a231cb42cc3faee20fe2cc831de958ef4a4d447
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Thu Jan 26 20:09:46 2023 -0500

    add GHA status badge; remove travis config & scripts (#182)
---
 .travis.yml             | 62 -------------------------------------------------
 README.md               |  2 +-
 tools/travis/build.sh   | 45 -----------------------------------
 tools/travis/publish.sh | 54 ------------------------------------------
 tools/travis/scan.sh    | 30 ------------------------
 tools/travis/setup.sh   | 36 ----------------------------
 tools/travis/test.sh    | 33 --------------------------
 7 files changed, 1 insertion(+), 261 deletions(-)

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 2c756bb..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,62 +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: focal
-language: go
-go:
-  - "1.19.x"   # Do not fix the patch level to automatically get security fixes.
-services:
-  - docker
-
-notifications:
-  email: false
-  webhooks:
-    urls:
-      # travis2slack webhook to enable DMs on openwhisk-team.slack.com to PR authors with TravisCI results
-      secure: "oucv10cFn2nM5XpwIRY0xbJw0m7gkFABFUD/wj4oubpO64yjeY/RUHkYXNHXKESd6ME9TngdmvkjCdetMTKK1wo/jUbSh6wGxn1ND4f3E9ds/6PS4gbMEDdKQWt/VKqXHtx3vUKDrvPvTNv9CDZ6lfBA5SNcN4E2gIoiORaX73CrPhA3tFTgPG2+ESi31/QstMaomAszyPGvYwDSdCALk0qsdjxJgpUzIm11vj5gPD5PPTnJBsAg0yC52WTOTYtORoEJUuhBXVwEpoZ5qPOusoHzFqq6BXsIU6zPEXSkHXcyCxYGY7V4P+FkAtteOBqMFALpv+klVTRVlOjwiRSSeUD45N1+fBnCgYSXLIPJunRyj1epsDSepTpOBlw1MWZ4LzfGw8897wdS2oZXju9adS5Wv2f7VksaA3meuYrZ3ohSKVRdeUfZwEh29E9rUQTYyffzmn9Sh6TDjObUbZlhhdXRPjzwB [...]
-
-before_install:
-  - "./tools/travis/setup.sh"
-install: true
-script:
-  - "./tools/travis/scan.sh && ./tools/travis/build.sh && ./tools/travis/test.sh"
-after_failure: cat .gogradle/reports/test/index.html
-deploy:
-  - provider: script
-    skip_cleanup: true
-    script: "./tools/travis/publish.sh openwhisk ${TRAVIS_TAG%@*} ${TRAVIS_TAG##*@}"
-    on:
-      tags: true
-      all_branches: true
-      repo: apache/openwhisk-runtime-go
-  - provider: script
-    skip_cleanup: true
-    script: "./tools/travis/publish.sh openwhisk actionloop nightly"
-    on:
-      branch: master
-      repo: apache/openwhisk-runtime-go
-  - provider: script
-    skip_cleanup: true
-    script: "./tools/travis/publish.sh openwhisk 1.17 nightly && ./tools/travis/publish.sh openwhisk 1.18 nightly && ./tools/travis/publish.sh openwhisk 1.19 nightly"
-    on:
-      branch: master
-      repo: apache/openwhisk-runtime-go
-env:
-  global:
-    - secure: "JPcDPdaYlZ4m7LRdJbhaCAhe0as/NQ/4lAiYEJoG6mzNLS/XA7kNWK7iCzk+4Tym90KcjTmXzAHGukdaBYrOiwNGUp6sWiKbtqVryKuoSgINxE+U5/udTyxbJuLEBtHBpAbolvXC4oE7hncGGe25CgrH0iefl2nuWO1etbddXi8EfWzYfzT9M7lhkeGcH60h+yBfyV/mSa35so7OSuLYoCCAKsZWP5xCagSo4NvvOOPBH6GB6bRLBdYhQ5k5WZGh51JOmuj9dKjoFjFqnvYUJUlkQVFqlqyM14JbJO2Oib+LLC9+6BM8aCznr9NfIwqBzcr10sqTrBBiXwJNjeaN0W474fzkFQNq2MwKLAwpWCBuc2U91BzaIGK1jpx92z6FfwB6muVQAiljEgi9N8Xpi6z9Hjiqsk3cQLHdf2NNYMrTKZ3NUIvL0w0hphTv7trDm2sJmVO4Jx6iXe1T/6nBsFcX0RrH0 [...]
-    - secure: "4vnbj9e77qzZI8N1TGtmujDhCoc7aPYIpvigc5HJzKYIaMlftGesLoC3ipfQSJRoLVvMdqEp/LGN0swvt3afd2Rop1qdao9NahMQ828mPYTSGQb7br/c6kh6oBSu5cMqA1IGwBlzEhFZJiXjX4VFJYldNQiAEkh51UENhtA1CiFWC/DwrFKC0poU+6pbelTzmX9Ad22vliU+w8UYG8A6ygXjBXK+7RUt/lVKalfSD/ymZlfRoKhyVoA4ftjh2E6NHQDlA+0nLfRQaPgRVKjERxlzCKQBztwWCq69dceL0UJjv1LBWepMKIW7vS77KgKUq0rRSklNIPFstqLpFds8BO2eYUXQhdhemJNwfNiMo+AjCX1nxPWP42kpq8pHwb9Rs8b2CRdIVqLDxu8CoEjjAQtMgeEhB/yze1yczmycRh//Tz765fWp19384GZ7LDJ3JvpsnzUMjAxO42DtUdI+FD3zmWGAu [...]
diff --git a/README.md b/README.md
index 061cfc6..5be13b1 100644
--- a/README.md
+++ b/README.md
@@ -18,8 +18,8 @@
 -->
 # Apache OpenWhisk Runtimes for Go
 
-[![Build Status](https://travis-ci.com/apache/openwhisk-runtime-go.svg?branch=master)](https://travis-ci.com/github/apache/openwhisk-runtime-go)
 [![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-go/actions/workflows/ci.yaml/badge.svg)](https://github.com/apache/openwhisk-runtime-go/actions/workflows/ci.yaml)
 [![Join Slack](https://img.shields.io/badge/join-slack-9B69A0.svg)](http://slack.openwhisk.org/)
 
 This repository contains both the OpenWhisk runtime for Golang Actions, as well as a runtime for Generic executables.
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
deleted file mode 100755
index c03aa9f..0000000
--- a/tools/travis/build.sh
+++ /dev/null
@@ -1,45 +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/Compile go
-cd $ROOTDIR
-# just build docker images - they compile the proxy
-TERM=dumb ./gradlew distDocker
-
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
deleted file mode 100755
index 98564d6..0000000
--- a/tools/travis/publish.sh
+++ /dev/null
@@ -1,54 +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.
-
-IMAGE_PREFIX=$1
-RUNTIME_VERSION=$2
-IMAGE_TAG=$3
-
-if [[ ! -z ${DOCKER_USER} ]] && [[ ! -z ${DOCKER_PASSWORD} ]]; then
-docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"
-fi
-
-if [[ ${RUNTIME_VERSION} =~ 1\.[0-9]+ ]]; then
-  RUNTIME="golang$RUNTIME_VERSION"
-elif [ ${RUNTIME_VERSION} == "actionloop" ]; then
-  RUNTIME="actionloop"
-fi
-
-if [[ ! -z ${RUNTIME} ]]; then
-TERM=dumb ./gradlew \
-:${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 \
-  :${RUNTIME}:distDocker \
-  -PdockerRegistry=docker.io \
-  -PdockerImagePrefix=${IMAGE_PREFIX} \
-  -PdockerImageTag=${SHORT_COMMIT}
-  fi
-
-fi
diff --git a/tools/travis/scan.sh b/tools/travis/scan.sh
deleted file mode 100755
index 5242b68..0000000
--- a/tools/travis/scan.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/../.."
-UTILDIR="$ROOTDIR/../openwhisk-utilities"
-
-# run scancode using the ASF Release configuration
-pushd $UTILDIR
-scancode/scanCode.py --config scancode/ASF-Release.cfg $ROOTDIR
-popd
diff --git a/tools/travis/setup.sh b/tools/travis/setup.sh
deleted file mode 100755
index 87d061a..0000000
--- a/tools/travis/setup.sh
+++ /dev/null
@@ -1,36 +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
-go get github.com/sirupsen/logrus
-go get github.com/stretchr/testify/assert
diff --git a/tools/travis/test.sh b/tools/travis/test.sh
deleted file mode 100755
index ae7876a..0000000
--- a/tools/travis/test.sh
+++ /dev/null
@@ -1,33 +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}
-pushd openwhisk
-go version
-go test -v
-popd
-TERM=dumb ./gradlew test --info