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