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:57:10 UTC

[openwhisk-runtime-dotnet] branch master updated: add GitHub Action badge; remove Travis scripts and configuration (#78)

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


The following commit(s) were added to refs/heads/master by this push:
     new 88de330  add GitHub Action badge; remove Travis scripts and configuration (#78)
88de330 is described below

commit 88de33067ecc18fd2d1a203a15a49cbd9f5398d1
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Sat Feb 18 04:57:05 2023 -0500

    add GitHub Action badge; remove Travis scripts and configuration (#78)
---
 .travis.yml             | 52 ----------------------------------------------
 README.md               |  3 ++-
 tools/travis/build.sh   | 55 -------------------------------------------------
 tools/travis/publish.sh | 54 ------------------------------------------------
 tools/travis/setup.sh   | 33 -----------------------------
 tools/travis/test.sh    | 30 ---------------------------
 6 files changed, 2 insertions(+), 225 deletions(-)

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 66c71f4..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,52 +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
-jdk: openjdk11
-language: java
-services:
-- docker
-
-notifications:
-  email: false
-  webhooks:
-    urls:
-      # travis2slack webhook to enable DMs on openwhisk-team.slack.com to PR authors with TravisCI results
-      secure: "sHbOOe7/GW3+gf4OSfG7jvG7sAuPGZROjBq5qCxMsLAA9sPLHXYlYNQOt4yCjSVQPaBkwvPDkQf317ED31l3Z+ae1TQO2Mo+XTpLmVs1fb4Ay6388rgxHwim1VkwTxcB2Kj6aTL9lLnZtxELOS3xkkfrzNg54Y+1pJzPaIzlpddqzfVwyI/c7xPJj6r75CvJRGEiyZ50ZK1uuppInvyXaSxeSmZT932mPelCR2fR9LFYfSpb/9l65OXKDR9MFiTYS8fWQP5Ce1KxI9Fv1t2Y9v7D0Op0fWh9UBEPD/qLuahvRKqqqO4GorOVbhISBfu5v/7kw5jPwzVzb1ywndxb4Jx/TZ+VnVYmP3VIPwztocMvbf8Sk6SjHQcxeoeya6I3XKpm8pnUZ03RgLHneXSex6lgs/24tQUgLNWJV2PuoDKPBWiPu7q1JaovXObL7sBw/fyhmkhA8kOEpJ02jtfMsBWSPwlOJ [...]
-
-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-dotnet
-- provider: script
-  script: "./tools/travis/publish.sh openwhisk 2.2 nightly && ./tools/travis/publish.sh openwhisk 3.1 nightly"
-  on:
-    branch: master
-    repo: apache/openwhisk-runtime-dotnet
-env:
-  global:
-    - secure: "adfEwr33egiCNWb3kUeEktdOqNkGnZdIq0hq+89Oy/t7uunbIJxsN64OHwtbMPcRf8YK20Oheb2Dmra586YarT5g0ZiRSPtFQnLw+YsQUDY9J6WaGX6HPWBMh+kdwm7vpc4cLU7IFRkWPFcZ9Pse8W2B0Nu4XQ2LabG9I/3QZ8JOl7IlVeFGVsNWmP4TpsJKVDJrABiokjJf++XBklr1ZUW4quI09HBQGcNCDLDDHxqjME2Mc4Pql/c+VyqOvAWFBXKFKW1QuXf980MHq+G7pV7kb7KHTVG+uHLr1MQvUJxsCpQJE20O/Es+Aeqsaz52pPL/Ucbp1+4GCxairHKOPleBlBVyyHLY9bvT+zli0hlGdoCc0h44chOKfaUhfcFoz7QIq6FFjw+rPY2bGv2+hr3JnUcS19yPN3fGOjGnkb0E55+gJsBBDNDWNRF62zq0ReILoqi1p5J6CzDV5zCh3UOo/3l6+ [...]
-    - secure: "hqZX32vQ+BXNNLE1HTnPJG3EIQ+NQ6/bjyN2cI/rp6m7ACZPwqzv6SaLUBPDIqDmDgCeFj1hFPX29fihXhH7x2yw0HvDW46KhBStKDv5ZXnYF8moOrTHLvfVdzWG4x4jZYmz5LqxmV3AyoxXKLpGwJeNroVdBlisHZf5AlJGsEtVdzFPzu8PgmzNLxYviZ1JKscOgGKbPuESJr2rcyfFe4sLzxtkCl4Un0IOPbElzv+wWGuuUUaz/Z5PcRHLWAT8Ckn4h+MzqgJbcACYzKoEe0C6QrhJHbLxOSoeHdWgjh51eGleIIYJbNiqsXhmP1sKqrmOM/GtBrSdLWjyyfzWNxcKR68d5lB/3K1BgqAM0oja/hfPZ+iRdfnnhOSw4MBPs5YzgDmX5qyCsvdbWruqYDCJsf+Toumzy1sZsCjpvS00Hg9DAkvx8vIMev0epM/z1bSomFB25pFApN+6jBRswuBZY5xSp [...]
diff --git a/README.md b/README.md
index deff735..2760967 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,8 @@
 # Apache OpenWhisk runtimes for .NET
 
 [![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-dotnet.svg?branch=master)](https://travis-ci.com/github/apache/openwhisk-runtime-dotnet)
+[![Continuous Integration](https://github.com/apache/openwhisk-runtime-dotnet/actions/workflows/ci.yaml/badge.svg)](https://github.com/apache/openwhisk-runtime-dotnet/actions/workflows/ci.yaml)
+
 ## Give it a try today
 
 Create a C# project called Apache.OpenWhisk.Example.Dotnet:
diff --git a/tools/travis/build.sh b/tools/travis/build.sh
deleted file mode 100755
index 9695072..0000000
--- a/tools/travis/build.sh
+++ /dev/null
@@ -1,55 +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
-
-# Upgrade dpkg avoid problems installing dotnet 3.1
-# https://github.com/travis-ci/travis-ci/issues/9361#issuecomment-408431262
-sudo apt-get install -y --force-yes -q -qq dpkg
-# Install dotnet
-wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb
-sudo dpkg -i packages-microsoft-prod.deb
-sudo apt-get install -y apt-transport-https
-sudo apt-get -y update -qq
-sudo apt-get install -y dotnet-sdk-3.1
-
-# 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 and dependencies
-cd $ROOTDIR
-
-# Build runtime & test dependencies
-TERM=dumb ./gradlew distDocker
diff --git a/tools/travis/publish.sh b/tools/travis/publish.sh
deleted file mode 100755
index a654e3a..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.
-
-SCRIPTDIR=$(cd $(dirname "$0") && pwd)
-ROOTDIR="$SCRIPTDIR/../.."
-WHISKDIR="$ROOTDIR/../openwhisk"
-
-export OPENWHISK_HOME=$WHISKDIR
-
-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:dotnet${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:dotnet${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 ef9e297..0000000
--- a/tools/travis/setup.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 -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
-
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