diff --git a/.travis.yml b/.travis.yml index 75c4742867..170c08b61c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,4 +25,5 @@ install: - sudo apt-get install -y gdb # install gdb script: +- if [[ "$PURPOSE" == "compile-with-bazel" ]]; then bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 //... ; fi - sh build_in_travis_ci.sh diff --git a/build_in_travis_ci.sh b/build_in_travis_ci.sh index 1841907270..3bec826889 100644 --- a/build_in_travis_ci.sh +++ b/build_in_travis_ci.sh @@ -21,11 +21,6 @@ runcmd(){ echo "build combination: PURPOSE=$PURPOSE CXX=$CXX CC=$CC" -if [ "$PURPOSE" = "compile-with-bazel" ]; then - runcmd "bazel build -j 12 -c opt --copt -DHAVE_ZLIB=1 //..." - exit 0 -fi - # 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"