This is an automated email from the ASF dual-hosted git repository.

jiashunzhu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 9cdced4f Add Action Badge and Remove Travis file (#2023)
9cdced4f is described below

commit 9cdced4fb58a8c86d254230a3b7be7f87c76ab57
Author: 果冻虾仁 <guod...@apache.org>
AuthorDate: Mon Nov 28 20:17:51 2022 +0800

    Add Action Badge and Remove Travis file (#2023)
---
 .github/workflows/ci-macos.yml |  2 +-
 .travis.yml                    | 53 ---------------------------------
 README.md                      |  3 +-
 build_in_travis_ci.sh          | 66 ------------------------------------------
 4 files changed, 3 insertions(+), 121 deletions(-)

diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml
index 636d757f..19692a78 100644
--- a/.github/workflows/ci-macos.yml
+++ b/.github/workflows/ci-macos.yml
@@ -1,4 +1,4 @@
-name: Build and Test on Macos
+name: Build on Macos
 
 on:
   push:
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 96ada385..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,53 +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.
-
-language: cpp
-
-sudo: required
-
-compiler:
-- clang
-- gcc
-
-env:
-- PURPOSE=compile-with-make
-- PURPOSE=compile-with-cmake
-- PURPOSE=compile-with-bazel
-- PURPOSE=unittest
-- PURPOSE=compile-with-make-all-options
-- PURPOSE=compile-with-cmake-all-options
-- PURPOSE=compile-with-bazel-all-options
-
-before_script:
-- ulimit -c unlimited -S       # enable core dumps
-# The real command should be put into another "bash -c" otherwise it
-# would cause a permission issue. The reason may be that the 'sudo'
-# only promote the 'echo' part but not the whole command.
-- sudo bash -c "echo 'core.%e.%p' > /proc/sys/kernel/core_pattern"
-
-before_install:
-- wget --no-clobber 
https://github.com/bazelbuild/bazel/releases/download/4.2.2/bazel_4.2.2-linux-x86_64.deb
 && sudo dpkg -i bazel_4.2.2-linux-x86_64.deb
-- sudo apt-get install automake bison flex g++ git libboost-all-dev 
libevent-dev libssl-dev libtool make pkg-config # thrift dependencies
-- wget https://archive.apache.org/dist/thrift/0.11.0/thrift-0.11.0.tar.gz && 
tar -xf thrift-0.11.0.tar.gz && cd thrift-0.11.0/ && ./configure --prefix=/usr 
--with-rs=no --with-ruby=no --with-python=no --with-java=no --with-go=no 
--with-perl=no --with-php=no --with-csharp=no --with-erlang=no --with-lua=no 
--with-nodejs=no CXXFLAGS="-Wno-unused-variable" && make -j4 && sudo make 
install && cd -
-
-install:
-- sudo apt-get install -qq realpath libgflags-dev libprotobuf-dev 
libprotoc-dev protobuf-compiler libleveldb-dev libgoogle-perftools-dev 
libboost-dev libssl-dev libevent-dev libboost-test-dev libgoogle-glog-dev
-- sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo env 
"PATH=$PATH" cmake . && sudo make && sudo mv libgtest* /usr/lib/ && cd -
-- sudo apt-get install -y gdb  # install gdb
-
-script:
-- sh build_in_travis_ci.sh
diff --git a/README.md b/README.md
index 82b141e7..5e66c9cb 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
 [中文版](README_cn.md)
 
-[![Build 
Status](https://api.travis-ci.com/apache/incubator-brpc.svg?branch=master)](https://travis-ci.com/github/apache/incubator-brpc)
+[![Linux Build 
Status](https://github.com/apache/incubator-brpc/actions/workflows/ci-linux.yml/badge.svg)](https://github.com/apache/incubator-brpc/actions/workflows/ci-linux.yml)
+[![MacOs Build 
Status](https://github.com/apache/incubator-brpc/actions/workflows/ci-macos.yml/badge.svg)](https://github.com/apache/incubator-brpc/actions/workflows/ci-macos.yml)
 
 # ![brpc](docs/images/logo.png)
 
diff --git a/build_in_travis_ci.sh b/build_in_travis_ci.sh
deleted file mode 100644
index e273f769..00000000
--- a/build_in_travis_ci.sh
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/usr/bin/env sh
-
-# 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.
-
-if [ -z "$PURPOSE" ]; then
-    echo "PURPOSE must be set"
-    exit 1
-fi
-if [ -z "$CXX" ]; then
-    echo "CXX must be set"
-    exit 1
-fi
-if [ -z "$CC" ]; then
-    echo "CC must be set"
-    exit 1
-fi
-
-runcmd(){
-    eval $@
-    [[ $? != 0 ]] && {
-        exit 1
-    }
-    return 0
-}
-
-echo "build combination: PURPOSE=$PURPOSE CXX=$CXX CC=$CC"
-
-init_make_config() {
-    # The default env in travis-ci is Ubuntu.
-    if ! sh config_brpc.sh --headers=/usr/include --libs=/usr/lib 
--nodebugsymbols --cxx=$CXX --cc=$CC $@ ; then
-        echo "Fail to configure brpc"
-        exit 1
-    fi
-}
-
-if [ "$PURPOSE" = "compile-with-make" ]; then
-    # In order to run thrift example, we need to add the corresponding flag
-    init_make_config "--with-thrift" && make -j4 && sh tools/make_all_examples
-elif [ "$PURPOSE" = "unittest" ]; then
-    init_make_config && cd test && make -j4 && sh ./run_tests.sh
-elif [ "$PURPOSE" = "compile-with-cmake" ]; then
-    rm -rf bld && mkdir bld && cd bld && cmake .. && make -j4
-elif [ "$PURPOSE" = "compile-with-bazel" ]; then
-    bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 //...
-elif [ "$PURPOSE" = "compile-with-make-all-options" ]; then
-    init_make_config "--with-thrift --with-glog" && make -j4
-elif [ "$PURPOSE" = "compile-with-cmake-all-options" ]; then
-    rm -rf bld && mkdir bld && cd bld && cmake -DWITH_MESALINK=OFF 
-DWITH_GLOG=ON -DWITH_THRIFT=ON .. && make -j4
-elif [ "$PURPOSE" = "compile-with-bazel-all-options" ]; then
-    bazel build -j 12 -c opt --define with_mesalink=false --define 
with_glog=true --define with_thrift=true --copt -DHAVE_ZLIB=1 //...
-else
-    echo "Unknown purpose=\"$PURPOSE\""
-fi


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to