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

[openwhisk-runtime-php] branch master updated: add GHA status badge; remove travis config and scripts (#128)

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


The following commit(s) were added to refs/heads/master by this push:
     new 062f3fe  add GHA status badge; remove travis config and scripts (#128)
062f3fe is described below

commit 062f3fe9b14f46635d24a79539fccc68babe9c8a
Author: David Grove <dg...@users.noreply.github.com>
AuthorDate: Thu Jan 26 20:10:10 2023 -0500

    add GHA status badge; remove travis config and scripts (#128)
---
 .travis.yml             | 62 -------------------------------------------------
 README.md               |  3 +--
 tools/travis/build.sh   | 43 ----------------------------------
 tools/travis/publish.sh | 54 ------------------------------------------
 tools/travis/setup.sh   | 34 ---------------------------
 tools/travis/test.sh    | 30 ------------------------
 6 files changed, 1 insertion(+), 225 deletions(-)

diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index dc8eee1..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
-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: "RjyijvETg6UQu6JP8pXlAo2FKnACtRWuWVqQRzMbiARlKF5nWC4AZqQqzzebyezFt8mkfY3DTEKxL//IxnqmO8sl68setE/RATGXVPnHTyAs4kJcvp7BlS3v0yl9v8usE14AmsBxMygg8C5rbRLeEsxMqts9VbRycxCM3Ml5deQVRFhaBMakjuEcVRqDzmArOlLTJto/qcV8orv6arIdNzBOMNQLN25YnVnoGeoCd/8za6E2HiWV1+plv0wrpAJ3jECu2l6ADD/OYKQTgO+2Zh8rfpC4L4FG86BiEfaZkH2ptKtmt7jSfr/oG0tI0oAhjglTlbj4kaLMPejBB1c0B2R2YV2nRJwsFQ8jQfMFJDjqohaAh6hd0xOih3u3nkgzCoVh0l2zA7NJ05GquJFDlIoM0W2SAov3An9SFIt1WpigDS4YH06k5YlEyFSIJjJgwYwKLjvyeEL39FeVbb6Lt0DIXaaft [...]
-
-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-php
-  - provider: script
-    script: "./tools/travis/publish.sh openwhisk 7.4 nightly"
-    on:
-      branch: master
-      repo: apache/openwhisk-runtime-php
-  - provider: script
-    script: "./tools/travis/publish.sh openwhisk 8.0 nightly"
-    on:
-      branch: master
-      repo: apache/openwhisk-runtime-php
-  - provider: script
-    script: "./tools/travis/publish.sh openwhisk 8.1 nightly"
-    on:
-      branch: master
-      repo: apache/openwhisk-runtime-php
-env:
-  global:
-    - secure: "CE5mw5ZiXzchr1HcQVr94H8vN8U8Q/te0nPfWgEOUEbFixTRe71RYEKBHno/WztZd36XO1B3/1Ewc37FayFw474FUUdnrkVKh1ctzpmtBhGHw7KTMmSnICcR7ULcN/+WyjzvU5fTNMKEoaLcAcg4qEVqxnN4m3R1E8XJL9c0Kc8Hs2Mry0QqY9meX/DHeYzgs1VUuO/i0mXeXU6U8woP+eeGypaNrWk/U8gR9nA4VB49EVZZ1d8TtdaC9/+wmMjl93YQZccs1K2NTNJfDDU9Tm5RQQeXM4oZYaOaHvdlpo+iWhJ4blyVqY9i6NIx6satm5zV5amfO/hISuyfYdiyA/IiTvbewE4cUMq5W7B2xOUESmZQFqn4ssnCjKRGw2km2VnnAAQOSGMgQ1jUZUOYqtxKjTMYTtM8cZqYdo6URJy6Qz4Lhg/xfQgXdrPZZoKIoo4NcESHLaTfxazEB3nePA91qg4Bx [...]
-    - secure: "boFF7esy1+VdGAOpOD6rH5f97UdLxvV/0FuSzahds91CvZsxl2GROQdoJjcg378AvuoLt5qo2NgNQn/jEqw58LUaAAPckhtY+9YnB3yTH6PaIAZU6Nh6O6TbhEQKZAvxJ/sA0FRVx92rlaRxEL7FBD0+S+sepRaA3n/PWUaPZlz90PhY+WRoKZPLN9/zkaFuFIV22HLSbP7HBduTBfesejOZoHDzlI7/PVyzMte93PnGvzE1NXebRLe/fc7xm0kkuKGU6EoPeVHIRtSy6InQt/fS71uS7XT/vTac3B9J8bvB9SScv+UfvApiqdu4H8LEfaxEuZLWyHrwOcCJnCS6q0zLdfzVAO3YDz2Bmd3+iiXmxcq/jumOlSv5ZTae1SXIQmBvcU3/xLr8RV9ZpHJotpQphaCTFPS2Nhxq/lMObfma9a/OtFG+M+rrRI0TgH6464yn4Pdtf2ToUFhpulWMA2131I54c [...]
diff --git a/README.md b/README.md
index 704eef4..6a10778 100644
--- a/README.md
+++ b/README.md
@@ -19,8 +19,7 @@
 
 # Apache OpenWhisk runtimes for PHP
 [![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-php.svg?branch=master)](https://travis-ci.com/github/apache/openwhisk-runtime-php)
-
+[![Continuous Integration](https://github.com/apache/openwhisk-runtime-php/actions/workflows/ci.yaml/badge.svg)](https://github.com/apache/openwhisk-runtime-php/actions/workflows/ci.yaml)
 
 ## PHP versions
 
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 5b74844..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_VERSION=$2
-IMAGE_TAG=$3
-
-if [[ ! -z ${DOCKER_USER} ]] && [[ ! -z ${DOCKER_PASSWORD} ]]; then
-docker login -u "${DOCKER_USER}" -p "${DOCKER_PASSWORD}"
-fi
-
-if [[ ! -z ${RUNTIME_VERSION} ]]; then
-TERM=dumb ./gradlew \
-:core:php${RUNTIME_VERSION}Action: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:php${RUNTIME_VERSION}Action: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