aboutsummaryrefslogtreecommitdiff
path: root/travis.sh
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-07-15 11:05:10 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-07-16 12:25:55 -0700
commit181c7f26360429b236ab833c746d10d97811931f (patch)
tree3abdbaf4abb0115c17892bcf2a1629c9475f147c /travis.sh
parentfde6e89f99eda04a4f1b8677bcea07e6c2040405 (diff)
downloadprotobuf-181c7f26360429b236ab833c746d10d97811931f.tar.gz
protobuf-181c7f26360429b236ab833c746d10d97811931f.tar.bz2
protobuf-181c7f26360429b236ab833c746d10d97811931f.zip
Added Ruby to conformance tests.
This involved fixing a few important bugs in the Ruby implementation -- mostly cases of mixing upb field types and descriptor types (upb field types do not distinguish between int/sint/fixed/sfixed like descriptor types do). Also added protobuf-specific exceptions so parse errors can be caught specifically. Change-Id: Ib49d3db976900b2c6f3455c8b88af52cfb86e036
Diffstat (limited to 'travis.sh')
-rwxr-xr-xtravis.sh29
1 files changed, 16 insertions, 13 deletions
diff --git a/travis.sh b/travis.sh
index 4aa67344..9514ec2b 100755
--- a/travis.sh
+++ b/travis.sh
@@ -8,10 +8,16 @@
# .travis.yml uses matrix.exclude to block the cases where app-get can't be
# use to install things.
-build_cpp() {
+# For when some other test needs the C++ main build, including protoc and
+# libprotobuf.
+internal_build_cpp() {
./autogen.sh
./configure
make -j2
+}
+
+build_cpp() {
+ internal_build_cpp
make check -j2
cd conformance && make test_cpp && cd ..
}
@@ -62,18 +68,14 @@ use_java() {
build_java() {
# Java build needs `protoc`.
- ./autogen.sh
- ./configure
- make -j2
+ internal_build_cpp
cd java && mvn test && cd ..
cd conformance && make test_java && cd ..
}
build_javanano() {
# Java build needs `protoc`.
- ./autogen.sh
- ./configure
- make -j2
+ internal_build_cpp
cd javanano && mvn test && cd ..
}
@@ -104,9 +106,7 @@ build_javanano_oracle7() {
}
build_python() {
- ./autogen.sh
- ./configure
- make -j2
+ internal_build_cpp
cd python
python setup.py build
python setup.py test
@@ -116,9 +116,7 @@ build_python() {
}
build_python_cpp() {
- ./autogen.sh
- ./configure
- make -j2
+ internal_build_cpp
export LD_LIBRARY_PATH=../src/.libs # for Linux
export DYLD_LIBRARY_PATH=../src/.libs # for OS X
cd python
@@ -130,18 +128,23 @@ build_python_cpp() {
}
build_ruby19() {
+ internal_build_cpp # For conformance tests.
cd ruby && bash travis-test.sh ruby-1.9 && cd ..
}
build_ruby20() {
+ internal_build_cpp # For conformance tests.
cd ruby && bash travis-test.sh ruby-2.0 && cd ..
}
build_ruby21() {
+ internal_build_cpp # For conformance tests.
cd ruby && bash travis-test.sh ruby-2.1 && cd ..
}
build_ruby22() {
+ internal_build_cpp # For conformance tests.
cd ruby && bash travis-test.sh ruby-2.2 && cd ..
}
build_jruby() {
+ internal_build_cpp # For conformance tests.
cd ruby && bash travis-test.sh jruby && cd ..
}