diff options
author | Jisi Liu <liujisi@google.com> | 2016-07-29 14:24:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-29 14:24:42 -0700 |
commit | c4790429fc454a687312a48a22e30d93c29efd4d (patch) | |
tree | 9e311d5a552782074da625a442232c2aac01e609 | |
parent | f3449e5f57bd99eb2eb2f53f846bc857b7cdc752 (diff) | |
parent | baa4023cd577d7ebb673fbb5102b3f33a827dae5 (diff) | |
download | protobuf-c4790429fc454a687312a48a22e30d93c29efd4d.tar.gz protobuf-c4790429fc454a687312a48a22e30d93c29efd4d.tar.bz2 protobuf-c4790429fc454a687312a48a22e30d93c29efd4d.zip |
Merge pull request #1892 from xfxyjwf/compatibility_tests
Run Java compatibility tests on Travis.
-rw-r--r-- | .travis.yml | 4 | ||||
-rwxr-xr-x | tests.sh | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 1417cb98..094235e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,6 +57,10 @@ matrix: # tests on jenkins running in parallel. - os: linux env: CONFIG=cpp_distcheck + # The Java compatibility test currently only runs on Linux because it will + # fetch pre-built Linux protoc binaries in the test. + - os: linux + env: CONFIG=java_compatibility allow_failures: # These currently do not work on OS X but are being worked on by @haberman. - os: osx @@ -195,6 +195,14 @@ build_java_oracle7() { use_java oracle7 build_java oracle7 } +build_java_compatibility() { + use_java jdk7 + internal_build_cpp + # Use the unit-tests extraced from 2.5.0 to test the compatibilty between + # 3.0.0-beta-4 and the current version. + cd java/compatibility_tests/v2.5.0 + ./test.sh 3.0.0-beta-4 +} build_javanano_jdk7() { use_java jdk7 @@ -340,6 +348,7 @@ Usage: $0 { cpp | csharp | java_jdk7 | java_oracle7 | + java_compatibility | javanano_jdk7 | javanano_oracle7 | objectivec_ios | |