tests.sh 18 KB

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