add GHA badge; remove TravisCI config + scripts (#138)
diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1732771..0000000 --- a/.travis.yml +++ /dev/null
@@ -1,70 +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: - - python - -python: - - "3.7" - -services: - - docker -# required to support multi-stage build -addons: - apt: - sources: - - sourcelist: 'deb https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable' - packages: - - docker-ce - -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-python - - provider: script - script: "./tools/travis/publish.sh openwhisk 3 nightly && ./tools/travis/publish.sh openwhisk 3-ai nightly && ./tools/travis/publish.sh openwhisk 39 nightly && ./tools/travis/publish.sh openwhisk 310 nightly" - on: - branch: master - repo: apache/openwhisk-runtime-python -env: - global: - - secure: "N5g9wUkuz5N4KM2KlJLpl/3X1l6d/ZFikquDDibpEyMCbhN6dPSpVu3Ji2M5/fcCd49IUnAZbrD7wlIr/zLdBYOBX+ERsjG7phPaIl23xZtJ/J7wTxCA+5i2uI4Oj1yh81OffLf0dxdx+sfRizKPyRpUqwTI0PgntPJKeqUxtILrnNDQ/yZEvSSiqe9ndYYfpZcYJj+IYUc/iXw8CMg3J2s/dTNXgd4o5ADU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t8flciPNDOD8QB26yDZGoqI9Vy2hYXBPLACX6U/KB45Pp0doAT7IdiatpM7uUSlRJN2R68XASc=" - -notifications: - slack: - secure: ipYx0BX7TwWmG+qeyAllxBxrPn21dJubfEbALn8yTOZfykTWpVtohWrqieAnc6kFQRqz1TAs1wzyjvTcutaIMi9C7FcJrYRIMUMpyID3ca5FeZopr/LBW53XHj/SgZWwFRAnWsjYnSydfZJnUBInI6por8jdVqVgsCMTDsvcXFEoHdVj9M93aB7y8pgqZhfYkQOPojktDu7nMxjsjKJN7dT+g/1kVWtS8DQQCXHTPP44YquxOCgAFn+CZjes9Jm+vz5lk5Azksi48yiHwFiLYZo5gcnwr2n2IspjBs6db10rkCe693vIpoW4T3KujMIKwVXrgUl4pDME1nN/loEBHm0DjKoeOD13DHqITMTPX4sR94TCGf0lMyaag/JOETdDgC9hAbh4aSx1cj4hGXiuGrNMbYblMBsjvujqFp2nraw/DE93pHGRY9lbBZIjEVhj/jBmOv1I3yRdXHj4VybZc4JGnfQVGz/RYDOEmKGoLoVWFp+hGAHDqVos9ZvEBByMAAmgVD2/D5cBER3oskp/JJjKmFLk614FcNh4D7/+bYAFhxbCgnoLHH5GeSo0q73O3JSi5pZggEIN9xis7SVQgPl+MUDTe5N3X3J3bQc7cMYGLzh0VNSyYaHuW2P02vWBNE/FAkL8UGrfGsXnDyGRRxo8fYHTXpIjhIkE7tY5eZQ= - on_pull_requests: false - on_success: change - on_failure: always - webhooks: - urls: - # travis2slack webhook to enable DMs on openwhisk-team.slack.com to PR authors with TravisCI results - secure: "JoCPajRbNQ+8Tpu7XyjtLT/pbbA4vhEpScYs7YIE4+iYtZLNXpqXdX/9+tzX9uGsh/+4DoIVMXjcKjDKglgtffgv8RF1wVblIpC8pIcPVaUxWn1KitjZCgFEQnxpT74DgJng3C1ADHon5htNdZ/vhfXDtV6XJ1/mvtWJZCC0ZsWuvRiwnRwZdIkrZi7Fpl6fqTOOAcy7KV8IeKi+GMInjvPrVdG3uLgQO2tOnoKK4oFvDT1sV3hLX8nx6GYAers98AtbvNyiSyg4wAUFV6HTiF7Kc4rHWqPgu8aQRfO8yTlZ4XomAHR1HcujANgoG1lvij28N7pkgRvjUBpPP82qYKlx4xC9RxeH40MjlYiCLHWUswyFb9QGRsnbGtCamME3kBiC3jO86avvD16PWwCbA1q/Y7bLhUZUCUOGHzxvb3n2kCgkcjcbwIiS8+/2aJsIJ8TE7Y6sjrMHJEGILO57gY/JdCrevn4MOfnyCiqPgWdnPTUzcXcYoH/hZctUsOISc2M5yZsNAVHyHFZAbDDdgCLAVi9SAIRhB9ipn/JbpnHzPhu7eW46T6cDMdBAw0FUPvrGch20qhABILU7cFCDZLJ/DouKGAOn1XPXo5FUBjyM854jjm2jVs6IpOdUecW1lGdafB3d0AJXMm4vBXU8VmCuvElurnoE+FNpKZpmjms=" - -
diff --git a/README.md b/README.md index fde778f..5db1a8a 100644 --- a/README.md +++ b/README.md
@@ -19,7 +19,7 @@ # Apache OpenWhisk Runtimes for Python [](http://www.apache.org/licenses/LICENSE-2.0) -[](https://travis-ci.com/github/apache/openwhisk-runtime-python) +[](https://github.com/apache/openwhisk-runtime-python/actions/workflows/ci.yaml) This repository contains sources files needed to build the Python runtimes for Apache OpenWhisk. The build system will produce a series of docker images for each runtime version. These images are used in the platform to execute Python actions.
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 3215103..0000000 --- a/tools/travis/publish.sh +++ /dev/null
@@ -1,64 +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} == "3" ]; then - RUNTIME="python3Action" -elif [ ${RUNTIME_VERSION} == "3-ai" ]; then - RUNTIME="python36AiAction" -elif [ ${RUNTIME_VERSION} == "39" ]; then - RUNTIME="python39Action" -elif [ ${RUNTIME_VERSION} == "310" ]; then - RUNTIME="python310Action" -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 36dd210..0000000 --- a/tools/travis/setup.sh +++ /dev/null
@@ -1,38 +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/../../../" - -# check python and pip versions -python --version -pip --version - -# 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 7ba1b89..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:testPython3