Skip to content

Commit d5c7737

Browse files
authored
Merge pull request PaddlePaddle#888 from reyoung/feature/upgrade_to_proto3
Upgrade protobuf to 3.1 in Travis-CI
2 parents 5c2206c + 7395d2d commit d5c7737

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ addons:
2929
- python-pip
3030
- python2.7-dev
3131
- m4
32-
- libprotobuf-dev
33-
- doxygen
34-
- protobuf-compiler
35-
- python-protobuf
3632
- python-numpy
3733
- python-wheel
3834
- libgoogle-glog-dev
@@ -43,6 +39,8 @@ addons:
4339
- graphviz
4440
- swig
4541
- clang-format-3.8
42+
- automake
43+
- libtool
4644
before_install:
4745
- |
4846
if [ ${JOB} == "BUILD_AND_TEST" ]; then

cmake/check_packages.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ endif()
2424

2525
if(WITH_DOC)
2626
find_package(Sphinx REQUIRED)
27-
find_package(Doxygen REQUIRED)
2827
find_python_module(recommonmark REQUIRED)
2928
endif()
3029

paddle/scripts/travis/before_install.linux.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
#!/bin/bash
22
set -e
3+
pip install protobuf
4+
cd /tmp
5+
wget https://github.com/google/protobuf/archive/v3.0.2.tar.gz -O protobuf.tar.gz
6+
tar xf protobuf.tar.gz
7+
cd protobuf*
8+
./autogen.sh
9+
./configure --prefix=/usr/
10+
make -j 2 install
11+
cd ..
12+
rm -rf protobuf*
13+
314
pushd /usr/src/gtest
415
cmake .
516
make

paddle/scripts/travis/before_install.osx.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
brew update
33
brew tap homebrew/science
44
brew install python
5-
sudo pip install --upgrade protobuf==2.6.0
6-
brew install homebrew/versions/protobuf260 --without-python
7-
brew install cmake python glog gflags openblas wget md5sha1sum
5+
sudo pip install --upgrade protobuf
6+
brew install cmake python glog gflags openblas wget md5sha1sum protobuf
87

98
wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz -O gtest.tar.gz
109
tar xf gtest.tar.gz

0 commit comments

Comments
 (0)