Skip to content
Snippets Groups Projects
Commit 3819497d authored by Kyle Manna's avatar Kyle Manna
Browse files

travis: Use prebuilt protoc and protobuf 3.4

* Upgrade to protobuf release 3.4.
* Use the prebuilt protoc binary to skip alot of compilation steps
* Use the smaller Python source file for building python packages
parent cb852f0c
No related branches found
No related tags found
No related merge requests found
......@@ -42,11 +42,17 @@ before_install:
# directories:
# - $HOME/protobuf
# Rather then compile protobuf 3 from source, use the binaries now available
# to speed up build time and reduce surprises until Ubuntu adds protobuf3
# packages to the repository.
install:
- curl -L https://github.com/google/protobuf/releases/download/v3.0.0-beta-1/protobuf-python-3.0.0-alpha-4.tar.gz | tar xzf -
&& pushd protobuf-3.0.0-alpha-4
&& ./configure --prefix=$HOME/protobuf && make && make install
&& pushd python && python setup.py build && python setup.py install && popd
- mkdir -p $HOME/protobuf && pushd $HOME/protobuf
&& curl -LO 'https://github.com/google/protobuf/releases/download/v3.4.0/protoc-3.4.0-linux-x86_64.zip'
&& unzip protoc-3.4.0-linux-x86_64.zip
&& popd
- curl -L 'https://github.com/google/protobuf/releases/download/v3.4.0/protobuf-python-3.4.0.tar.gz' | tar xzf -
&& pushd protobuf-3.4.0/python
&& python setup.py build && python setup.py install
&& popd
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment