You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gobblin.apache.org by le...@apache.org on 2021/06/09 23:22:38 UTC
[gobblin] 01/02: Remove travis files and update build status badge
This is an automated email from the ASF dual-hosted git repository.
lesun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/gobblin.git
commit df6548cbe8a62aba2dfcd6285ed861b45d1b823e
Author: William Lo <lo...@gmail.com>
AuthorDate: Mon Jun 7 16:49:35 2021 -0700
Remove travis files and update build status badge
---
.travis.yml | 64 ------------------------
README.md | 2 +-
travis/artifactoryDeploy.sh | 39 ---------------
travis/filter-to-failing-test-results.py | 36 --------------
travis/junit-errors-to-stdout.sh | 44 -----------------
travis/junit-xml-format-errors.xsl | 84 --------------------------------
travis/test-build.sh | 27 ----------
travis/test-coverage.sh | 31 ------------
travis/test-default.sh | 32 ------------
travis/test-group1.sh | 35 -------------
travis/test-groups.inc | 1 -
travis/test.sh | 46 -----------------
12 files changed, 1 insertion(+), 440 deletions(-)
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index e467c91..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,64 +0,0 @@
-language: java
-
-dist: bionic
-sudo: required
-
-jdk:
- - openjdk8
-
-addons:
- apt:
- packages:
- - libaio-dev
- - libdbus-glib-1-dev
- - xsltproc
-
-before_cache:
- - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
-
-cache:
- directories:
- - $HOME/.gradle/caches/
- - $HOME/.gradle/wrapper/
-
-before_install:
-
-services:
- - xvfb
- - mysql
-
-stages:
- - test
- - name: deploy
- if: branch = master
-
-before_script:
- - mysql -uroot -e "create user testUser identified by 'testPassword';"
- - mysql -uroot -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password')"
-
-script:
- - travis_retry ./travis/test.sh
- - travis_retry ./gradlew jacocoTestReport
-after_success:
- - bash <(cat .codecov_bash)
-after_failure: ./travis/junit-errors-to-stdout.sh
-
-jobs:
- include:
- - stage: deploy
- env: RUN_TEST_GROUP=none
- install: skip
- script:
- - travis_retry ./travis/artifactoryDeploy.sh
-
-env:
- jobs:
- - RUN_TEST_GROUP=build
- - RUN_TEST_GROUP=default
- - RUN_TEST_GROUP=group1
- - RUN_TEST_GROUP=coverage
- global:
- - secure: TihDMhhcX3K1BXV1zCgHYfAa/wxpVOxnMZXbvAoCiA6vbUCd/94bPQaAhABKkZdWUqsgto9YxYyqcQM2XntDXs2K3A8AdW2PUgb9ynf782zFsfG8O2fasW1UQxg4QQ5TQw+P34s7HjUNz0dDfRyl1gurN9yPOPvAxv+paB9FDfE=
- - secure: K/d6ce/NOHkcNfQvFopU5jVkCPwbj8xWTu1vgZiHMOeIB3cU9lZzxQESOZw5zd1aqYDMmTYXU62I/fn0CWTUvfL1TdKFQ4iN0OW31uFr2cFtnCRhxALsRoXYHvApHmssOxuQdp76jAavoHt+CLxcwG/FGZ3GEaczbZC1ZU/pjbQ=
-jdk:
- - openjdk8
diff --git a/README.md b/README.md
index 4d989cc..14b91c4 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
# Apache Gobblin
-[![Build Status](https://api.travis-ci.org/apache/gobblin.svg?branch=master)](https://travis-ci.org/apache/gobblin)
+[![Build Status](https://github.com/apache/gobblin/actions/workflows/build_and_test.yaml/badge.svg?branch=master)](https://travis-ci.org/apache/gobblin)
[![Documentation Status](https://readthedocs.org/projects/gobblin/badge/?version=latest)](https://gobblin.readthedocs.org/en/latest/?badge=latest)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.apache.gobblin/gobblin-api/badge.svg)](https://search.maven.org/search?q=g:org.apache.gobblin)
[![Stack Overflow](http://img.shields.io/:stack%20overflow-gobblin-brightgreen.svg)](http://stackoverflow.com/questions/tagged/gobblin)
diff --git a/travis/artifactoryDeploy.sh b/travis/artifactoryDeploy.sh
deleted file mode 100755
index 32c5b3c..0000000
--- a/travis/artifactoryDeploy.sh
+++ /dev/null
@@ -1,39 +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.
-#
-
-#
-# Test script used by Travis to test the
-# hadoop1 or hadoop2 versions of gobblin.
-#
-
-#!/bin/bash
-set -e
-
-echo "Starting $0 at " $(date)
-PROJECT_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')
-
-echo "Project Version: $PROJECT_VERSION"
-BUILD_VERSION=$PROJECT_VERSION-dev-${TRAVIS_BUILD_NUMBER}
-echo "Build Version: $BUILD_VERSION"
-
-echo "Pull request: [$TRAVIS_PULL_REQUEST], Travis branch: [$TRAVIS_BRANCH]"
-# release only from master when no pull request build
-if [ "$TRAVIS_PULL_REQUEST" = "false" ]
-then
- echo "Uploading artifacts to bintray for version $BUILD_VERSION"
- ./gradlew artifactoryPublish -Pversion=$BUILD_VERSION
-fi
\ No newline at end of file
diff --git a/travis/filter-to-failing-test-results.py b/travis/filter-to-failing-test-results.py
deleted file mode 100644
index b491483..0000000
--- a/travis/filter-to-failing-test-results.py
+++ /dev/null
@@ -1,36 +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.
-#
-
-#
-# Python script used to filter the list of junit XML test results
-# to those that contain errors or failures.
-#
-
-#!/usr/bin/python
-
-import sys
-import fileinput
-import xml.etree.ElementTree
-
-for line in fileinput.input():
- suite = xml.etree.ElementTree.parse(line.rstrip()).getroot()
- errors = suite.get("errors")
- failures = suite.get("failures")
- if (errors is not None and int(errors) > 0) or (failures is not None and int(failures) > 0):
- sys.stdout.write(line)
-
-sys.exit(0)
\ No newline at end of file
diff --git a/travis/junit-errors-to-stdout.sh b/travis/junit-errors-to-stdout.sh
deleted file mode 100755
index 3c14095..0000000
--- a/travis/junit-errors-to-stdout.sh
+++ /dev/null
@@ -1,44 +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.
-#
-
-#
-# Script used by Travis builds upon a failure to format and
-# print the failing test results to the console.
-#
-
-#!/bin/bash
-IFS='
-'
-DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
-ROOTDIR="$1"
-if [ -z "$ROOTDIR" ]; then
- ROOTDIR="."
-fi
-echo 'Formatting results...'
-FILES=$(find "$ROOTDIR" -path '*/build/*/test-results/*.xml' | python "$DIR/filter-to-failing-test-results.py")
-if [ -n "$FILES" ]; then
- for file in $FILES; do
- echo "Formatting $file"
- if [ -f "$file" ]; then
- echo '====================================================='
- xsltproc "$DIR/junit-xml-format-errors.xsl" "$file"
- fi
- done
- echo '====================================================='
-else
- echo 'No */build/*/test-results/*.xml files found with failing tests.'
-fi
diff --git a/travis/junit-xml-format-errors.xsl b/travis/junit-xml-format-errors.xsl
deleted file mode 100755
index 64882f9..0000000
--- a/travis/junit-xml-format-errors.xsl
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- ~ 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.
- -->
-<!--
- XSL Transform script to format the junit XML test result
- files in a console friend way.
-
- Based on SO answer http://stackoverflow.com/a/9471505/166062 by dvdvorle http://stackoverflow.com/users/481635/dvdvorle
--->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="text" indent="no"/>
- <xsl:template match="/testsuite">
- <xsl:text>Testsuite: </xsl:text><xsl:value-of select="@name" />
-<xsl:text>
-Tests run: </xsl:text>
- <xsl:value-of select="@tests" />
- <xsl:text>, Failures: </xsl:text>
- <xsl:value-of select="@failures" />
- <xsl:text>, Errors: </xsl:text>
- <xsl:value-of select="@errors" />
- <xsl:text>, Time elapsed: </xsl:text>
- <xsl:value-of select="@time" />
- <xsl:text> sec</xsl:text>
- <xsl:text>
---------- ----------- ---------</xsl:text>
- <xsl:apply-templates select="testcase" />
- <xsl:apply-templates select="system-out" />
- <xsl:apply-templates select="system-err" />
- </xsl:template>
-
- <xsl:template match="testcase">
- <xsl:text>
-Testcase: </xsl:text>
- <xsl:value-of select="@name" />
- <xsl:text> took </xsl:text>
- <xsl:value-of select="@time" />
- <xsl:choose>
- <xsl:when test="failure"><xsl:text> FAILURE
- </xsl:text><xsl:apply-templates select="failure"/></xsl:when>
- <xsl:when test="error"><xsl:text> ERROR
- </xsl:text><xsl:apply-templates select="error"/></xsl:when>
- <xsl:otherwise><xsl:text> SUCCESS</xsl:text></xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="error | failure">
- <xsl:value-of select="@message" />
- <xsl:if test="@type != @message">
- <xsl:text> </xsl:text><xsl:value-of select="@type" />
- </xsl:if>
- <xsl:text>
-</xsl:text>
- <xsl:value-of select="." />
- </xsl:template>
-
- <xsl:template match="system-out">
- <xsl:text>
------- Standard output ------
-</xsl:text>
- <xsl:value-of select="." />
- </xsl:template>
-
- <xsl:template match="system-err">
- <xsl:text>
------- Error output ------
-</xsl:text>
- <xsl:value-of select="." />
- </xsl:template>
-
-</xsl:stylesheet>
\ No newline at end of file
diff --git a/travis/test-build.sh b/travis/test-build.sh
deleted file mode 100755
index caf1495..0000000
--- a/travis/test-build.sh
+++ /dev/null
@@ -1,27 +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.
-#
-
-#
-# Build script used by Travis to clean and assemble the
-# hadoop1 or hadoop2 versions of gobblin.
-#
-
-#!/bin/bash
-set -e
-
-echo "Starting $0 at " $(date)
-time ./gradlew clean build -x test -x javadoc -Dorg.gradle.parallel=true $GOBBLIN_GRADLE_OPTS
diff --git a/travis/test-coverage.sh b/travis/test-coverage.sh
deleted file mode 100755
index 7e6feda..0000000
--- a/travis/test-coverage.sh
+++ /dev/null
@@ -1,31 +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.
-#
-
-#
-# Test script used by Travis to test the
-# hadoop1 or hadoop2 versions of gobblin.
-#
-
-#!/bin/bash
-set -e
-
-script_dir=$(dirname $0)
-
-source ${script_dir}/test-groups.inc
-
-echo "Starting $0 at " $(date)
-time ./gradlew -PskipTestGroup=disabledOnCI -Dorg.gradle.parallel=false -DjacocoBuild=1 $GOBBLIN_GRADLE_OPTS jacocoTestCoverage
diff --git a/travis/test-default.sh b/travis/test-default.sh
deleted file mode 100755
index 9be3dcf..0000000
--- a/travis/test-default.sh
+++ /dev/null
@@ -1,32 +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.
-#
-
-#
-# Test script used by Travis to test the
-# hadoop1 or hadoop2 versions of gobblin.
-#
-
-#!/bin/bash
-set -e
-
-script_dir=$(dirname $0)
-
-source ${script_dir}/test-groups.inc
-
-echo "Starting $0 at " $(date)
-echo "GOBBLIN_GRADLE_OPTS=$GOBBLIN_GRADLE_OPTS"
-time ./gradlew -PskipTestGroup=disabledOnCI,$TEST_GROUP1 -Dorg.gradle.parallel=false $GOBBLIN_GRADLE_OPTS test
diff --git a/travis/test-group1.sh b/travis/test-group1.sh
deleted file mode 100755
index fb3b00f..0000000
--- a/travis/test-group1.sh
+++ /dev/null
@@ -1,35 +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.
-#
-
-#
-# Test script used by Travis to test the
-# hadoop1 or hadoop2 versions of gobblin.
-#
-
-#!/bin/bash
-set -e
-
-script_dir=$(dirname $0)
-
-source ${script_dir}/test-groups.inc
-
-echo "Starting $0 at " $(date)
-echo "Precompiling tests:"
-rm -rf $HOME/.gradle/caches/
-./gradlew compileTest -Porg.gradle.parallel=false $GOBBLIN_GRADLE_OPTS
-echo "Running tests for $TEST_GROUP1"
-time ./gradlew -PskipTestGroup=disabledOnCI -PrunTestGroups=$TEST_GROUP1 -Dorg.gradle.parallel=false $GOBBLIN_GRADLE_OPTS test
\ No newline at end of file
diff --git a/travis/test-groups.inc b/travis/test-groups.inc
deleted file mode 100644
index 8eef534..0000000
--- a/travis/test-groups.inc
+++ /dev/null
@@ -1 +0,0 @@
-TEST_GROUP1=gobbin.yarn,gobblin.runtime,gobblin.cluster,gobblin.compaction,gobblin.util,gobblin.writer
diff --git a/travis/test.sh b/travis/test.sh
deleted file mode 100755
index 261da9c..0000000
--- a/travis/test.sh
+++ /dev/null
@@ -1,46 +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.
-#
-
-#
-# Test script used by Travis to test the
-# hadoop1 or hadoop2 versions of gobblin.
-#
-
-#!/bin/bash
-set -e
-
-#free
-
-RUN_TEST_GROUP=${RUN_TEST_GROUP:-default}
-
-script_dir=$(dirname $0)
-echo "Old GRADLE_OPTS=$GRADLE_OPTS"
-
-export java_version=$(java -version 2>&1 | grep 'openjdk version' | sed -e 's/openjdk version "\(1\..\).*/\1/')
-
-echo "Using Java version:${java_version}"
-
-export GOBBLIN_GRADLE_OPTS="-Dorg.gradle.daemon=false -Dgobblin.metastore.testing.embeddedMysqlEnabled=false -PusePreinstalledMysql=true -PjdkVersion=${java_version}"
-
-TEST_SCRIPT=${script_dir}/test-${RUN_TEST_GROUP}.sh
-if [ -x $TEST_SCRIPT ] ; then
- echo "Running test group $RUN_TEST_GROUP"
- $TEST_SCRIPT "$@"
-else
- echo "Test file $TEST_SCRIPT does not exist or is not executable!"
- exit 1
-fi