tests.sh 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. #!/bin/bash
  2. #
  3. # Build and runs tests for the protobuf project. The tests as written here are
  4. # used by both Jenkins and Travis, though some specialized logic is required to
  5. # handle the differences between them.
  6. on_travis() {
  7. if [ "$TRAVIS" == "true" ]; then
  8. "$@"
  9. fi
  10. }
  11. # For when some other test needs the C++ main build, including protoc and
  12. # libprotobuf.
  13. internal_build_cpp() {
  14. if [ -f src/protoc ]; then
  15. # Already built.
  16. return
  17. fi
  18. if [[ $(uname -s) == "Linux" && "$TRAVIS" == "true" ]]; then
  19. # Install GCC 4.8 to replace the default GCC 4.6. We need 4.8 for more
  20. # decent C++ 11 support in order to compile conformance tests.
  21. sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  22. sudo apt-get update -qq
  23. sudo apt-get install -qq g++-4.8
  24. export CXX="g++-4.8" CC="gcc-4.8"
  25. fi
  26. ./autogen.sh
  27. ./configure CXXFLAGS="-fPIC" # -fPIC is needed for python cpp test.
  28. # See python/setup.py for more details
  29. make -j2
  30. }
  31. build_cpp() {
  32. internal_build_cpp
  33. make check -j2
  34. cd conformance && make test_cpp && cd ..
  35. # The benchmark code depends on cmake, so test if it is installed before
  36. # trying to do the build.
  37. # NOTE: The travis macOS images say they have cmake, but the xcode8.1 image
  38. # appears to be missing it: https://github.com/travis-ci/travis-ci/issues/6996
  39. if [[ $(type cmake 2>/dev/null) ]]; then
  40. # Verify benchmarking code can build successfully.
  41. git submodule init
  42. git submodule update
  43. cd third_party/benchmark && cmake -DCMAKE_BUILD_TYPE=Release && make && cd ../..
  44. cd benchmarks && make && ./generate-datasets && cd ..
  45. else
  46. echo ""
  47. echo "WARNING: Skipping validation of the bench marking code, cmake isn't installed."
  48. echo ""
  49. fi
  50. }
  51. build_cpp_distcheck() {
  52. ./autogen.sh
  53. ./configure
  54. make dist
  55. # List all files that should be included in the distribution package.
  56. git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|php\|cmake\|examples\|src/google/protobuf/.*\.proto\)" |\
  57. grep -v ".gitignore" | grep -v "java/compatibility_tests" |\
  58. grep -v "python/compatibility_tests" | grep -v "csharp/compatibility_tests" > dist.lst
  59. # Unzip the dist tar file.
  60. DIST=`ls *.tar.gz`
  61. tar -xf $DIST
  62. cd ${DIST//.tar.gz}
  63. # Check if every file exists in the dist tar file.
  64. FILES_MISSING=""
  65. for FILE in $(<../dist.lst); do
  66. if ! file $FILE &>/dev/null; then
  67. echo "$FILE is not found!"
  68. FILES_MISSING="$FILE $FILES_MISSING"
  69. fi
  70. done
  71. cd ..
  72. if [ ! -z "$FILES_MISSING" ]; then
  73. echo "Missing files in EXTRA_DIST: $FILES_MISSING"
  74. exit 1
  75. fi
  76. # Do the regular dist-check for C++.
  77. make distcheck -j2
  78. }
  79. build_csharp() {
  80. # Just for the conformance tests. We don't currently
  81. # need to really build protoc, but it's simplest to keep with the
  82. # conventions of the other builds.
  83. internal_build_cpp
  84. NUGET=/usr/local/bin/nuget.exe
  85. # Perform "dotnet new" once to get the setup preprocessing out of the
  86. # way. That spews a lot of output (including backspaces) into logs
  87. # otherwise, and can cause problems. It doesn't matter if this step
  88. # is performed multiple times; it's cheap after the first time anyway.
  89. # (It also doesn't matter if it's unnecessary, which it will be on some
  90. # systems. It's necessary on Jenkins in order to avoid unprintable
  91. # characters appearing in the JUnit output.)
  92. mkdir dotnettmp
  93. (cd dotnettmp; dotnet new > /dev/null)
  94. rm -rf dotnettmp
  95. csharp/buildall.sh
  96. cd conformance && make test_csharp && cd ..
  97. # Run csharp compatibility test between 3.0.0 and the current version.
  98. csharp/compatibility_tests/v3.0.0/test.sh 3.0.0
  99. }
  100. build_golang() {
  101. # Go build needs `protoc`.
  102. internal_build_cpp
  103. # Add protoc to the path so that the examples build finds it.
  104. export PATH="`pwd`/src:$PATH"
  105. # Install Go and the Go protobuf compiler plugin.
  106. on_travis sudo apt-get update -qq
  107. on_travis sudo apt-get install -qq golang
  108. export GOPATH="$HOME/gocode"
  109. mkdir -p "$GOPATH/src/github.com/google"
  110. rm -f "$GOPATH/src/github.com/google/protobuf"
  111. ln -s "`pwd`" "$GOPATH/src/github.com/google/protobuf"
  112. export PATH="$GOPATH/bin:$PATH"
  113. go get github.com/golang/protobuf/protoc-gen-go
  114. cd examples && PROTO_PATH="-I../src -I." make gotest && cd ..
  115. }
  116. use_java() {
  117. version=$1
  118. case "$version" in
  119. jdk7)
  120. on_travis sudo apt-get install openjdk-7-jdk
  121. export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
  122. export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  123. ;;
  124. oracle7)
  125. if [ "$TRAVIS" == "true" ]; then
  126. sudo apt-get install python-software-properties # for apt-add-repository
  127. echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 select true" | \
  128. sudo debconf-set-selections
  129. yes | sudo apt-add-repository ppa:webupd8team/java
  130. yes | sudo apt-get install oracle-java7-installer
  131. fi;
  132. export PATH=/usr/lib/jvm/java-7-oracle/bin:$PATH
  133. export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  134. ;;
  135. esac
  136. if [ "$TRAVIS" != "true" ]; then
  137. MAVEN_LOCAL_REPOSITORY=/var/maven_local_repository
  138. MVN="$MVN -e -X --offline -Dmaven.repo.local=$MAVEN_LOCAL_REPOSITORY"
  139. fi;
  140. which java
  141. java -version
  142. $MVN -version
  143. }
  144. # --batch-mode supresses download progress output that spams the logs.
  145. MVN="mvn --batch-mode"
  146. build_java() {
  147. version=$1
  148. dir=java_$version
  149. # Java build needs `protoc`.
  150. internal_build_cpp
  151. cp -r java $dir
  152. cd $dir && $MVN clean && $MVN test
  153. cd ../..
  154. }
  155. # The conformance tests are hard-coded to work with the $ROOT/java directory.
  156. # So this can't run in parallel with two different sets of tests.
  157. build_java_with_conformance_tests() {
  158. # Java build needs `protoc`.
  159. internal_build_cpp
  160. cd java && $MVN test && $MVN install
  161. cd util && $MVN package assembly:single
  162. cd ../..
  163. cd conformance && make test_java && cd ..
  164. }
  165. build_javanano() {
  166. # Java build needs `protoc`.
  167. internal_build_cpp
  168. cd javanano && $MVN test && cd ..
  169. }
  170. build_java_jdk7() {
  171. use_java jdk7
  172. build_java_with_conformance_tests
  173. }
  174. build_java_oracle7() {
  175. use_java oracle7
  176. build_java oracle7
  177. }
  178. build_java_compatibility() {
  179. use_java jdk7
  180. internal_build_cpp
  181. # Use the unit-tests extraced from 2.5.0 to test the compatibilty between
  182. # 3.0.0-beta-4 and the current version.
  183. cd java/compatibility_tests/v2.5.0
  184. ./test.sh 3.0.0-beta-4
  185. }
  186. build_javanano_jdk7() {
  187. use_java jdk7
  188. build_javanano
  189. }
  190. build_javanano_oracle7() {
  191. use_java oracle7
  192. build_javanano
  193. }
  194. internal_install_python_deps() {
  195. if [ "$TRAVIS" != "true" ]; then
  196. return;
  197. fi
  198. # Install tox (OS X doesn't have pip).
  199. if [ $(uname -s) == "Darwin" ]; then
  200. sudo easy_install tox
  201. else
  202. sudo pip install tox
  203. fi
  204. # Only install Python2.6/3.x on Linux.
  205. if [ $(uname -s) == "Linux" ]; then
  206. sudo apt-get install -y python-software-properties # for apt-add-repository
  207. sudo apt-add-repository -y ppa:fkrull/deadsnakes
  208. sudo apt-get update -qq
  209. sudo apt-get install -y python3.3 python3.3-dev
  210. sudo apt-get install -y python3.4 python3.4-dev
  211. sudo apt-get install -y python3.5 python3.5-dev
  212. sudo apt-get install -y python3.6 python3.6-dev
  213. fi
  214. }
  215. build_objectivec_ios() {
  216. # Reused the build script that takes care of configuring and ensuring things
  217. # are up to date. The OS X test runs the objc conformance test, so skip it
  218. # here.
  219. # Note: travis has xctool installed, and we've looked at using it in the past
  220. # but it has ended up proving unreliable (bugs), an they are removing build
  221. # support in favor of xcbuild (or just xcodebuild).
  222. objectivec/DevTools/full_mac_build.sh \
  223. --core-only --skip-xcode-osx --skip-objc-conformance "$@"
  224. }
  225. build_objectivec_ios_debug() {
  226. build_objectivec_ios --skip-xcode-release
  227. }
  228. build_objectivec_ios_release() {
  229. build_objectivec_ios --skip-xcode-debug
  230. }
  231. build_objectivec_osx() {
  232. # Reused the build script that takes care of configuring and ensuring things
  233. # are up to date.
  234. objectivec/DevTools/full_mac_build.sh \
  235. --core-only --skip-xcode-ios
  236. }
  237. build_objectivec_cocoapods_integration() {
  238. # Update pod to the latest version.
  239. gem install cocoapods --no-ri --no-rdoc
  240. objectivec/Tests/CocoaPods/run_tests.sh
  241. }
  242. build_python() {
  243. internal_build_cpp
  244. internal_install_python_deps
  245. cd python
  246. # Only test Python 2.6/3.x on Linux
  247. if [ $(uname -s) == "Linux" ]; then
  248. envlist=py\{27,33,34,35,36\}-python
  249. else
  250. envlist=py27-python
  251. fi
  252. tox -e $envlist
  253. cd ..
  254. }
  255. build_python_cpp() {
  256. internal_build_cpp
  257. internal_install_python_deps
  258. export LD_LIBRARY_PATH=../src/.libs # for Linux
  259. export DYLD_LIBRARY_PATH=../src/.libs # for OS X
  260. cd python
  261. # Only test Python 3.x on Linux
  262. if [ $(uname -s) == "Linux" ]; then
  263. envlist=py\{27,33,34,35,36\}-cpp
  264. else
  265. envlist=py27-cpp
  266. fi
  267. tox -e $envlist
  268. cd ..
  269. }
  270. build_python_compatibility() {
  271. internal_build_cpp
  272. # Use the unit-tests extraced from 2.5.0 to test the compatibilty.
  273. cd python/compatibility_tests/v2.5.0
  274. # Test between 2.5.0 and the current version.
  275. ./test.sh 2.5.0
  276. # Test between 3.0.0-beta-1 and the current version.
  277. ./test.sh 3.0.0-beta-1
  278. }
  279. build_ruby21() {
  280. internal_build_cpp # For conformance tests.
  281. cd ruby && bash travis-test.sh ruby-2.1 && cd ..
  282. }
  283. build_ruby22() {
  284. internal_build_cpp # For conformance tests.
  285. cd ruby && bash travis-test.sh ruby-2.2 && cd ..
  286. }
  287. build_jruby() {
  288. internal_build_cpp # For conformance tests.
  289. # TODO(xiaofeng): Upgrade to jruby-9.x. There are some broken jests to be
  290. # fixed.
  291. cd ruby && bash travis-test.sh jruby-1.7 && cd ..
  292. }
  293. build_ruby_all() {
  294. build_ruby21
  295. build_ruby22
  296. # TODO(teboring): Disable jruby test temperarily for it randomly fails.
  297. # https://grpc-testing.appspot.com/job/protobuf_pull_request/735/consoleFull.
  298. # build_jruby
  299. }
  300. build_javascript() {
  301. internal_build_cpp
  302. cd js && npm install && npm test && cd ..
  303. cd conformance && make test_nodejs && cd ..
  304. }
  305. generate_php_test_proto() {
  306. internal_build_cpp
  307. pushd php/tests
  308. # Generate test file
  309. rm -rf generated
  310. mkdir generated
  311. ../../src/protoc --php_out=generated \
  312. proto/test.proto \
  313. proto/test_include.proto \
  314. proto/test_no_namespace.proto \
  315. proto/test_prefix.proto \
  316. proto/test_php_namespace.proto \
  317. proto/test_empty_php_namespace.proto \
  318. proto/test_reserved_enum_lower.proto \
  319. proto/test_reserved_enum_upper.proto \
  320. proto/test_reserved_enum_value_lower.proto \
  321. proto/test_reserved_enum_value_upper.proto \
  322. proto/test_reserved_message_lower.proto \
  323. proto/test_reserved_message_upper.proto \
  324. proto/test_service.proto \
  325. proto/test_service_namespace.proto \
  326. proto/test_descriptors.proto
  327. pushd ../../src
  328. ./protoc --php_out=../php/tests/generated -I../php/tests -I. ../php/tests/proto/test_import_descriptor_proto.proto
  329. popd
  330. popd
  331. }
  332. use_php() {
  333. VERSION=$1
  334. PHP=`which php`
  335. PHP_CONFIG=`which php-config`
  336. PHPIZE=`which phpize`
  337. ln -sfn "/usr/local/php-${VERSION}/bin/php" $PHP
  338. ln -sfn "/usr/local/php-${VERSION}/bin/php-config" $PHP_CONFIG
  339. ln -sfn "/usr/local/php-${VERSION}/bin/phpize" $PHPIZE
  340. generate_php_test_proto
  341. }
  342. use_php_zts() {
  343. VERSION=$1
  344. PHP=`which php`
  345. PHP_CONFIG=`which php-config`
  346. PHPIZE=`which phpize`
  347. ln -sfn "/usr/local/php-${VERSION}-zts/bin/php" $PHP
  348. ln -sfn "/usr/local/php-${VERSION}-zts/bin/php-config" $PHP_CONFIG
  349. ln -sfn "/usr/local/php-${VERSION}-zts/bin/phpize" $PHPIZE
  350. generate_php_test_proto
  351. }
  352. use_php_bc() {
  353. VERSION=$1
  354. PHP=`which php`
  355. PHP_CONFIG=`which php-config`
  356. PHPIZE=`which phpize`
  357. ln -sfn "/usr/local/php-${VERSION}-bc/bin/php" $PHP
  358. ln -sfn "/usr/local/php-${VERSION}-bc/bin/php-config" $PHP_CONFIG
  359. ln -sfn "/usr/local/php-${VERSION}-bc/bin/phpize" $PHPIZE
  360. generate_php_test_proto
  361. }
  362. build_php5.5() {
  363. use_php 5.5
  364. pushd php
  365. rm -rf vendor
  366. cp -r /usr/local/vendor-5.5 vendor
  367. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  368. phpunit
  369. popd
  370. pushd conformance
  371. make test_php
  372. popd
  373. }
  374. build_php5.5_c() {
  375. use_php 5.5
  376. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  377. pushd php/tests
  378. /bin/bash ./test.sh
  379. popd
  380. # TODO(teboring): Add it back
  381. # pushd conformance
  382. # make test_php_c
  383. # popd
  384. }
  385. build_php5.5_zts_c() {
  386. use_php_zts 5.5
  387. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  388. cd php/tests && /bin/bash ./test.sh && cd ../..
  389. # TODO(teboring): Add it back
  390. # pushd conformance
  391. # make test_php_zts_c
  392. # popd
  393. }
  394. build_php5.6() {
  395. use_php 5.6
  396. pushd php
  397. rm -rf vendor
  398. cp -r /usr/local/vendor-5.6 vendor
  399. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  400. phpunit
  401. popd
  402. pushd conformance
  403. make test_php
  404. popd
  405. }
  406. build_php5.6_c() {
  407. use_php 5.6
  408. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  409. cd php/tests && /bin/bash ./test.sh && cd ../..
  410. # TODO(teboring): Add it back
  411. # pushd conformance
  412. # make test_php_c
  413. # popd
  414. }
  415. build_php5.6_zts_c() {
  416. use_php_zts 5.6
  417. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  418. cd php/tests && /bin/bash ./test.sh && cd ../..
  419. # TODO(teboring): Add it back
  420. # pushd conformance
  421. # make test_php_zts_c
  422. # popd
  423. }
  424. build_php5.6_mac() {
  425. generate_php_test_proto
  426. # Install PHP
  427. curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6
  428. PHP_FOLDER=`find /usr/local -type d -name "php5-5.6*"` # The folder name may change upon time
  429. export PATH="$PHP_FOLDER/bin:$PATH"
  430. # Install phpunit
  431. curl https://phar.phpunit.de/phpunit-5.6.10.phar -L -o phpunit.phar
  432. chmod +x phpunit.phar
  433. sudo mv phpunit.phar /usr/local/bin/phpunit
  434. # Install valgrind
  435. echo "#! /bin/bash" > valgrind
  436. chmod ug+x valgrind
  437. sudo mv valgrind /usr/local/bin/valgrind
  438. # Test
  439. cd php/tests && /bin/bash ./test.sh && cd ../..
  440. # TODO(teboring): Add it back
  441. # pushd conformance
  442. # make test_php_c
  443. # popd
  444. }
  445. build_php7.0() {
  446. use_php 7.0
  447. pushd php
  448. rm -rf vendor
  449. cp -r /usr/local/vendor-7.0 vendor
  450. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  451. phpunit
  452. popd
  453. pushd conformance
  454. make test_php
  455. popd
  456. }
  457. build_php7.0_c() {
  458. use_php 7.0
  459. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  460. cd php/tests && /bin/bash ./test.sh && cd ../..
  461. # TODO(teboring): Add it back
  462. # pushd conformance
  463. # make test_php_c
  464. # popd
  465. }
  466. build_php7.0_zts_c() {
  467. use_php_zts 7.0
  468. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  469. cd php/tests && /bin/bash ./test.sh && cd ../..
  470. # TODO(teboring): Add it back.
  471. # pushd conformance
  472. # make test_php_zts_c
  473. # popd
  474. }
  475. build_php7.0_mac() {
  476. generate_php_test_proto
  477. # Install PHP
  478. curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0
  479. PHP_FOLDER=`find /usr/local -type d -name "php7-7.0*"` # The folder name may change upon time
  480. export PATH="$PHP_FOLDER/bin:$PATH"
  481. # Install phpunit
  482. curl https://phar.phpunit.de/phpunit-5.6.0.phar -L -o phpunit.phar
  483. chmod +x phpunit.phar
  484. sudo mv phpunit.phar /usr/local/bin/phpunit
  485. # Install valgrind
  486. echo "#! /bin/bash" > valgrind
  487. chmod ug+x valgrind
  488. sudo mv valgrind /usr/local/bin/valgrind
  489. # Test
  490. cd php/tests && /bin/bash ./test.sh && cd ../..
  491. # TODO(teboring): Add it back
  492. # pushd conformance
  493. # make test_php_c
  494. # popd
  495. }
  496. build_php_compatibility() {
  497. internal_build_cpp
  498. php/tests/compatibility_test.sh
  499. }
  500. build_php7.1() {
  501. use_php 7.1
  502. pushd php
  503. rm -rf vendor
  504. cp -r /usr/local/vendor-7.1 vendor
  505. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  506. phpunit
  507. popd
  508. pushd conformance
  509. # TODO(teboring): Add it back
  510. # make test_php
  511. popd
  512. }
  513. build_php7.1_c() {
  514. use_php 7.1
  515. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  516. cd php/tests && /bin/bash ./test.sh && cd ../..
  517. pushd conformance
  518. # make test_php_c
  519. popd
  520. }
  521. build_php7.1_zts_c() {
  522. use_php_zts 7.1
  523. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  524. cd php/tests && /bin/bash ./test.sh && cd ../..
  525. pushd conformance
  526. # make test_php_c
  527. popd
  528. }
  529. build_php_all_32() {
  530. build_php5.5
  531. build_php5.6
  532. build_php7.0
  533. build_php7.1
  534. build_php5.5_c
  535. build_php5.6_c
  536. build_php7.0_c
  537. build_php7.1_c
  538. build_php5.5_zts_c
  539. build_php5.6_zts_c
  540. build_php7.0_zts_c
  541. build_php7.1_zts_c
  542. }
  543. build_php_all() {
  544. build_php_all_32
  545. build_php_compatibility
  546. }
  547. # Note: travis currently does not support testing more than one language so the
  548. # .travis.yml cheats and claims to only be cpp. If they add multiple language
  549. # support, this should probably get updated to install steps and/or
  550. # rvm/gemfile/jdk/etc. entries rather than manually doing the work.
  551. # .travis.yml uses matrix.exclude to block the cases where app-get can't be
  552. # use to install things.
  553. # -------- main --------
  554. if [ "$#" -ne 1 ]; then
  555. echo "
  556. Usage: $0 { cpp |
  557. cpp_distcheck |
  558. csharp |
  559. java_jdk7 |
  560. java_oracle7 |
  561. java_compatibility |
  562. javanano_jdk7 |
  563. javanano_oracle7 |
  564. objectivec_ios |
  565. objectivec_ios_debug |
  566. objectivec_ios_release |
  567. objectivec_osx |
  568. objectivec_cocoapods_integration |
  569. python |
  570. python_cpp |
  571. python_compatibility |
  572. ruby21 |
  573. ruby22 |
  574. jruby |
  575. ruby_all |
  576. php5.5 |
  577. php5.5_c |
  578. php5.6 |
  579. php5.6_c |
  580. php7.0 |
  581. php7.0_c |
  582. php_compatibility |
  583. php7.1 |
  584. php7.1_c |
  585. php_all)
  586. "
  587. exit 1
  588. fi
  589. set -e # exit immediately on error
  590. set -x # display all commands
  591. eval "build_$1"