diff options
author | Josh Haberman <jhaberman@gmail.com> | 2016-02-18 14:55:00 -0800 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2016-03-02 14:51:09 -0800 |
commit | 57be1d7eb25432b9f0106d64faed323ef954f7d2 (patch) | |
tree | d2fcb930eafc60173d9638d548518c216f82f5d5 /tools/run_tests/travis.sh | |
parent | 78105897a8f01c7be9cf8502b6c58d47eb1ccdd7 (diff) | |
download | protobuf-57be1d7eb25432b9f0106d64faed323ef954f7d2.tar.gz protobuf-57be1d7eb25432b9f0106d64faed323ef954f7d2.tar.bz2 protobuf-57be1d7eb25432b9f0106d64faed323ef954f7d2.zip |
Added some initial shell scripts and docker file.
Diffstat (limited to 'tools/run_tests/travis.sh')
-rwxr-xr-x | tools/run_tests/travis.sh | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tools/run_tests/travis.sh b/tools/run_tests/travis.sh new file mode 100755 index 00000000..8c87a47b --- /dev/null +++ b/tools/run_tests/travis.sh @@ -0,0 +1,42 @@ +#!/usr/bin/env bash + +my_dir="$(dirname "$0")" + +source $my_dir/tests.sh + +# Note: travis currently does not support testing more than one language so the +# .travis.yml cheats and claims to only be cpp. If they add multiple language +# support, this should probably get updated to install steps and/or +# rvm/gemfile/jdk/etc. entries rather than manually doing the work. + +# .travis.yml uses matrix.exclude to block the cases where app-get can't be +# use to install things. + +# -------- main -------- + +if [ "$#" -ne 1 ]; then + echo " +Usage: $0 { cpp | + csharp | + java_jdk6 | + java_jdk7 | + java_oracle7 | + javanano_jdk6 | + javanano_jdk7 | + javanano_oracle7 | + objectivec_ios | + objectivec_osx | + python | + python_cpp | + ruby_19 | + ruby_20 | + ruby_21 | + ruby_22 | + jruby } +" + exit 1 +fi + +set -e # exit immediately on error +set -x # display all commands +eval "build_$1" |