diff --git a/actionloop-starter-kit/.travis.yml b/actionloop-starter-kit/.travis.yml deleted file mode 100644 index c475d21b..00000000 --- a/actionloop-starter-kit/.travis.yml +++ /dev/null @@ -1,61 +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 -group: deprecated-2017Q3 -language: scala -scala: -- 2.12.7 -services: - - docker -# required to support multi-stage build -addons: - apt: - 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 latest && ./tools/travis/publish.sh openwhisk 3-ai latest && ./tools/travis/publish.sh openwhisk 3-loop latest" - on: - branch: master - repo: apache/openwhisk-runtime-python -env: - global: - - secure: Ac7MlWUpsLwmbcjCigDf+vftiXAEJbf78FVm2QCd4IeFqlRiNbQm3bWRXOOW3Zqh4R4o/wSFpFq0qKPrI9WJjOcxD0GxFboq2iGWTegddfDbENV/IBmjurl6NzYY6dUB7GUSmHYy6tdKnxMhjHzZCn2m4OVWltcMtnOV0G+uYvbnre7vXfb67duzJF+mYpJJ7rC0wGh+N50bYvm0BTtPcQMYJibq6sDTY8Lr1b74QGdM/sODre69CbuiwAA7Ed0hajEcMkv8YnwY0De/PL7hthUyCWSD+i1AhtD+3odA64yX/pAbBzfCc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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: "jhiMGpQ6kJFWjjsO68RmgD2Lga7jgNE+EKwND0dMOvzf5llMLFDKcY5J3tgtrqYaslQdXeuYeru/9qJrTTjFEu+vz3iCwoJ/eme+D0TtTIFGlPr7oa9tZlWrkPM/0zFLq7KjJauIIX2+6qrGVrNJJ6ENfr4U8Ir8q51oLIk44bsCeB8EmkahPOlNG6kcNqgpxHWKYUdUIg3B0GxqCKida/76dXDTRHCV2dZuT2bXz2oSJYog/lybomsjQIUZj0+HqxecgWTzag3Y6rTpK+m+vywazHP91hE+oU4e7YrxCH6v9+ukoWaljFqO5ZEKXcpx6tzx8Q0FvoTP8vGOO9b/t1loVcA8OxSJDrtOAztfoz/u0HJN6vnVt+maqnrYAD1F4pxA63JA6/+a7firmtADP7A/WQMZg6RgEkGUr+amFn303dTvgjDDkZ4oH8MAr0EPsneGUA2MZgB3i1MEcnCrYzT7KpYmDmFLoFhS9OX8f1H3zi5DLZZbZ1jbW/Ay4BgvjdoC8vmhAsDfVvyY9P240+nQ9NrnjaAUMD4XI/6JAKekfoxvsnc9W8gKBGTNfzi55AVe7HbzB/wCd58c2CV3Ev3RRwKQpH67jLBROpg2ocRQr0BUeHmfOT7NV4BCqdw1eVkZWBw4oxVaCHelDdICwgPn696W5t/1UVl4tLTt1rk=" - diff --git a/actionloop-starter-kit/tools/travis/build.sh b/actionloop-starter-kit/tools/travis/build.sh deleted file mode 100755 index 8ee3c2b4..00000000 --- a/actionloop-starter-kit/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/actionloop-starter-kit/tools/travis/publish.sh b/actionloop-starter-kit/tools/travis/publish.sh deleted file mode 100755 index e18795d3..00000000 --- a/actionloop-starter-kit/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} == "2" ]; then - RUNTIME="python2Action" -elif [ ${RUNTIME_VERSION} == "3" ]; then - RUNTIME="pythonAction" -elif [ ${RUNTIME_VERSION} == "3-ai" ]; then - RUNTIME="python3AiAction" -elif [ ${RUNTIME_VERSION} == "3-loop" ]; then - RUNTIME="pythonActionLoop" -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 latest also push a tag with the hash commit - if [ ${IMAGE_TAG} == "latest" ]; 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/actionloop-starter-kit/tools/travis/setup.sh b/actionloop-starter-kit/tools/travis/setup.sh deleted file mode 100755 index 6315f1ad..00000000 --- a/actionloop-starter-kit/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/actionloop-starter-kit/tools/travis/test.sh b/actionloop-starter-kit/tools/travis/test.sh deleted file mode 100755 index 7ba1b896..00000000 --- a/actionloop-starter-kit/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