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/02/18 09:56:22 UTC

[openwhisk-runtime-rust] branch master updated: add GitHub Actions badge; remove Travis scripts and config (#44)

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


The following commit(s) were added to refs/heads/master by this push:
     new f0aa0f7  add GitHub Actions badge; remove Travis scripts and config (#44)
f0aa0f7 is described below

commit f0aa0f75fc469aa9927896860c10bb8758bc0c70
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Sat Feb 18 04:56:18 2023 -0500

    add GitHub Actions badge; remove Travis scripts and config (#44)
---
 .travis.yml             | 49 -------------------------------------------------
 README.md               |  2 +-
 tools/travis/build.sh   | 43 -------------------------------------------
 tools/travis/publish.sh | 48 ------------------------------------------------
 tools/travis/scan.sh    | 30 ------------------------------
 tools/travis/setup.sh   | 34 ----------------------------------
 tools/travis/test.sh    | 30 ------------------------------
 7 files changed, 1 insertion(+), 235 deletions(-)

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 9c4e093..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,49 +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
-services:
-- docker
-notifications:
-  webhooks:
-    urls:
-      # travis2slack webhook to enable DMs on openwhisk-team.slack.com to PR authors with TravisCI results
-      secure: "KM9nzdNtis/a5Kvb7coIMhlG0dspIyeVjVD3sVRczd4ViM86W/OV+bT9YIm8HWBzONTQp7K7BwIsWTjcY/8VZ/4ja1F0VnbLV9yldqckfFw3kJxra2W0mtmmWWqNTHsdbuHi2F2Hz+0+ZFWb08oO4nkpYtt9XlzVEv8jV2jxl/NQY5dIMI/3dY5EIrTb1/1Rt3SFv1Uzn+eWCCxFwy4V+/6TimqeHUMqKhVBJaf3miXUtTHHr+v7PIxmmRuX1AclJ/uLxYZdf1fLosWzsHU+DB5TpQFh4kG4POnLk8OcYI73TSaHcfJc82aIkdZKVLDBs8EiMM46kO7bXmKWH3KWsy0RLHIrQZkd7ucsg7UI2bGW42kWUb0PJQzdy6vkP+4+n3nEH+0/cRHinfalQER2wl+0J/nkhis1sNO9Okiq+6mbpp9EbHLbYE/GG9MuHGKvRYRfuRlZ/vlKlUhn3pPqjgjSDE7Gl [...]
-
-before_install:
-- "./tools/travis/setup.sh"
-install: true
-script:
-- "./tools/travis/scan.sh && ./tools/travis/build.sh && ./tools/travis/test.sh"
-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-rust
-- provider: script
-  skip_cleanup: true
-  script: "./tools/travis/publish.sh openwhisk rust1.34 nightly"
-  on:
-    branch: master
-    repo: apache/openwhisk-runtime-rust
-env:
-  global:
-    - secure: "lBWj5+2MT0zlARYF1kC19aPW8y+bSBJ3Eg8sfvwAhfawQXVZFCVm8NTJTyYAi37OR4/G7hkGICVrwBGC+VQlvIw9jBgJjJfhIkp6mJ2PLG5PABIKmI1T3SY2y6eGuUDiBBWyIJ41D/F+0wUwC10epPyesVOaWbnYydmwEh/3+cdVWEPyv7mwzkZ5mW0byu39iBvbk2wV2A6Dv2lpQCrZtzKMoflu2N1A7XxdZ1hGj/bf1LkiGpicZx0ZKNilNRDGm+nRjdCalgmviF7rf+cBJjqEss0L4kfeQbzSlXLbNxbyoQjDVF4aat8Cvyr2Ht+H80aMj4hu0W/veSaTzD66+Q+aS4LK6HtuRN15OZ8OM1NWvKoyqj/jJeyGXSCEbOtzW+cgbR2qItNqy2AefhDkzwXWS09GXbd3VPVq45I85iDCuNrfdEZc/3UiclqbuRwaBk2MfqNf+iF5asjZcureisWv/X1Mn [...]
-    - secure: "Re9psYEPQ9ZK76a2Suap6ZPF/ui0FxEaMCHBondbQhobtNo2B5aSkAzBW5ksCmsjSq+VLnU3MyLLB7r3ahst0B5lM1HE8r10Pjb6rX+a2yvd5JHkpCgE0JNXqku/AnuEu3Y9yJnWo/IzwPYDDNU/3DrtBJegy43XdcpFIHynmqFD94LvjO9d8O8EBOi8pou1Rs6BbPafCLRavJn61EvRBz4lv2ZaMHgpu+b/5+vwXHCfpzbWRTuf/CN2WVQKujEVVCqaGzlFDKjPHjx0bdS65XHhgC+mnOH0n7uBjY3Tsmq4xNTmN/3yaIucTMWj+M2LGhXgKFMn51gUZTXEc7eJvQ2BPfmOY0AyHKMzJ2XkfcHVjsXINOtqqRHiH1spBlGDsPBsxkHCqxL988eLuDMIPsJXn6QrpjRVQh5KEdSlCzko73AjzkcubkLUXCaf5H7UrhrWHYjj+UWnVZ6jf6S2hSZ0OhT9w [...]
diff --git a/README.md b/README.md
index d6bad70..d66f8d2 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@
 # Apache OpenWhisk Runtime for Rust
 
 [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
-[![Build Status](https://travis-ci.com/apache/openwhisk-runtime-rust.svg?branch=master)](https://travis-ci.com/github/apache/openwhisk-runtime-rust)
+[![Continuous Integration](https://github.com/apache/openwhisk-runtime-rust/actions/workflows/ci.yaml/badge.svg)](https://github.com/apache/openwhisk-runtime-rust/actions/workflows/ci.yaml)
 
 ### Give it a try today
 To use as a Docker action:
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 11fe401..0000000
--- a/tools/travis/publish.sh
+++ /dev/null
@@ -1,48 +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=$2
-IMAGE_TAG=$3
-
-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/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 184bc50..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 --depth=1 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