mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-28 14:48:18 +08:00
.travis.yml: use system protobuf packages and build using distcheck
the change that required protobuf >= 2.5.0 has been reverted, so there's no need to build protobuf from source. use the system protobuf packages instead. also use distcheck to build and check the distribution. this will run the test suite and perform various other checks. it will also perform a VPATH build using the distribution tarball, which will catch any files present in the git repository but inadvertently not distributed in the tarball. also test the build when configured with "--enable-rpc".
This commit is contained in:
parent
9e86cda282
commit
aab12f20bc
16
.travis.yml
16
.travis.yml
@ -1,20 +1,12 @@
|
|||||||
language: c
|
language: cpp
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Install protobuf-2.5.0
|
- sudo apt-get -q install protobuf-compiler libprotobuf-dev libprotoc-dev
|
||||||
- wget http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
|
|
||||||
- tar -xzvf protobuf-2.5.0.tar.gz
|
|
||||||
- cd protobuf-2.5.0 && ./configure
|
|
||||||
- make -j8
|
|
||||||
- sudo make install && sudo ldconfig
|
|
||||||
- cd ../
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./autogen.sh
|
- ./autogen.sh
|
||||||
- ./configure
|
- ./configure && make distcheck && make clean
|
||||||
- make -j8
|
- ./configure --enable-rpc && make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-rpc" && make clean
|
||||||
- make check
|
|
||||||
- sudo make install
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user