tests.sh 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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. brew upgrade python
  203. python3 -m pip install tox
  204. else
  205. sudo pip install tox
  206. fi
  207. # Only install Python2.6/3.x on Linux.
  208. if [ $(uname -s) == "Linux" ]; then
  209. sudo apt-get install -y python-software-properties # for apt-add-repository
  210. sudo apt-add-repository -y ppa:fkrull/deadsnakes
  211. sudo apt-get update -qq
  212. sudo apt-get install -y python3.3 python3.3-dev
  213. sudo apt-get install -y python3.4 python3.4-dev
  214. sudo apt-get install -y python3.5 python3.5-dev
  215. sudo apt-get install -y python3.6 python3.6-dev
  216. fi
  217. }
  218. build_objectivec_ios() {
  219. # Reused the build script that takes care of configuring and ensuring things
  220. # are up to date. The OS X test runs the objc conformance test, so skip it
  221. # here.
  222. # Note: travis has xctool installed, and we've looked at using it in the past
  223. # but it has ended up proving unreliable (bugs), an they are removing build
  224. # support in favor of xcbuild (or just xcodebuild).
  225. objectivec/DevTools/full_mac_build.sh \
  226. --core-only --skip-xcode-osx --skip-objc-conformance "$@"
  227. }
  228. build_objectivec_ios_debug() {
  229. build_objectivec_ios --skip-xcode-release
  230. }
  231. build_objectivec_ios_release() {
  232. build_objectivec_ios --skip-xcode-debug
  233. }
  234. build_objectivec_osx() {
  235. # Reused the build script that takes care of configuring and ensuring things
  236. # are up to date.
  237. objectivec/DevTools/full_mac_build.sh \
  238. --core-only --skip-xcode-ios
  239. }
  240. build_objectivec_cocoapods_integration() {
  241. # Update pod to the latest version.
  242. gem install cocoapods --no-ri --no-rdoc
  243. objectivec/Tests/CocoaPods/run_tests.sh
  244. }
  245. build_python() {
  246. internal_build_cpp
  247. internal_install_python_deps
  248. cd python
  249. # Only test Python 2.6/3.x on Linux
  250. if [ $(uname -s) == "Linux" ]; then
  251. envlist=py\{27,33,34,35,36\}-python
  252. else
  253. envlist=py27-python
  254. fi
  255. tox -e $envlist
  256. cd ..
  257. }
  258. build_python_cpp() {
  259. internal_build_cpp
  260. internal_install_python_deps
  261. export LD_LIBRARY_PATH=../src/.libs # for Linux
  262. export DYLD_LIBRARY_PATH=../src/.libs # for OS X
  263. cd python
  264. # Only test Python 3.x on Linux
  265. if [ $(uname -s) == "Linux" ]; then
  266. envlist=py\{27,33,34,35,36\}-cpp
  267. else
  268. envlist=py27-cpp
  269. fi
  270. tox -e $envlist
  271. cd ..
  272. }
  273. build_python_compatibility() {
  274. internal_build_cpp
  275. # Use the unit-tests extraced from 2.5.0 to test the compatibilty.
  276. cd python/compatibility_tests/v2.5.0
  277. # Test between 2.5.0 and the current version.
  278. ./test.sh 2.5.0
  279. # Test between 3.0.0-beta-1 and the current version.
  280. ./test.sh 3.0.0-beta-1
  281. }
  282. build_ruby21() {
  283. internal_build_cpp # For conformance tests.
  284. cd ruby && bash travis-test.sh ruby-2.1 && cd ..
  285. }
  286. build_ruby22() {
  287. internal_build_cpp # For conformance tests.
  288. cd ruby && bash travis-test.sh ruby-2.2 && cd ..
  289. }
  290. build_jruby() {
  291. internal_build_cpp # For conformance tests.
  292. # TODO(xiaofeng): Upgrade to jruby-9.x. There are some broken jests to be
  293. # fixed.
  294. cd ruby && bash travis-test.sh jruby-1.7 && cd ..
  295. }
  296. build_ruby_all() {
  297. build_ruby21
  298. build_ruby22
  299. # TODO(teboring): Disable jruby test temperarily for it randomly fails.
  300. # https://grpc-testing.appspot.com/job/protobuf_pull_request/735/consoleFull.
  301. # build_jruby
  302. }
  303. build_javascript() {
  304. internal_build_cpp
  305. cd js && npm install && npm test && cd ..
  306. cd conformance && make test_nodejs && cd ..
  307. }
  308. generate_php_test_proto() {
  309. internal_build_cpp
  310. pushd php/tests
  311. # Generate test file
  312. rm -rf generated
  313. mkdir generated
  314. ../../src/protoc --php_out=generated \
  315. proto/test.proto \
  316. proto/test_include.proto \
  317. proto/test_no_namespace.proto \
  318. proto/test_prefix.proto \
  319. proto/test_php_namespace.proto \
  320. proto/test_empty_php_namespace.proto \
  321. proto/test_reserved_enum_lower.proto \
  322. proto/test_reserved_enum_upper.proto \
  323. proto/test_reserved_enum_value_lower.proto \
  324. proto/test_reserved_enum_value_upper.proto \
  325. proto/test_reserved_message_lower.proto \
  326. proto/test_reserved_message_upper.proto \
  327. proto/test_service.proto \
  328. proto/test_service_namespace.proto \
  329. proto/test_descriptors.proto
  330. pushd ../../src
  331. ./protoc --php_out=../php/tests/generated -I../php/tests -I. \
  332. ../php/tests/proto/test_import_descriptor_proto.proto
  333. popd
  334. popd
  335. }
  336. use_php() {
  337. VERSION=$1
  338. PHP=`which php`
  339. PHP_CONFIG=`which php-config`
  340. PHPIZE=`which phpize`
  341. ln -sfn "/usr/local/php-${VERSION}/bin/php" $PHP
  342. ln -sfn "/usr/local/php-${VERSION}/bin/php-config" $PHP_CONFIG
  343. ln -sfn "/usr/local/php-${VERSION}/bin/phpize" $PHPIZE
  344. generate_php_test_proto
  345. }
  346. use_php_zts() {
  347. VERSION=$1
  348. PHP=`which php`
  349. PHP_CONFIG=`which php-config`
  350. PHPIZE=`which phpize`
  351. ln -sfn "/usr/local/php-${VERSION}-zts/bin/php" $PHP
  352. ln -sfn "/usr/local/php-${VERSION}-zts/bin/php-config" $PHP_CONFIG
  353. ln -sfn "/usr/local/php-${VERSION}-zts/bin/phpize" $PHPIZE
  354. generate_php_test_proto
  355. }
  356. use_php_bc() {
  357. VERSION=$1
  358. PHP=`which php`
  359. PHP_CONFIG=`which php-config`
  360. PHPIZE=`which phpize`
  361. ln -sfn "/usr/local/php-${VERSION}-bc/bin/php" $PHP
  362. ln -sfn "/usr/local/php-${VERSION}-bc/bin/php-config" $PHP_CONFIG
  363. ln -sfn "/usr/local/php-${VERSION}-bc/bin/phpize" $PHPIZE
  364. generate_php_test_proto
  365. }
  366. build_php5.5() {
  367. use_php 5.5
  368. pushd php
  369. rm -rf vendor
  370. cp -r /usr/local/vendor-5.5 vendor
  371. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  372. phpunit
  373. popd
  374. pushd conformance
  375. make test_php
  376. popd
  377. }
  378. build_php5.5_c() {
  379. use_php 5.5
  380. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  381. pushd php/tests
  382. /bin/bash ./test.sh 5.5
  383. popd
  384. # TODO(teboring): Add it back
  385. # pushd conformance
  386. # make test_php_c
  387. # popd
  388. }
  389. build_php5.5_zts_c() {
  390. use_php_zts 5.5
  391. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  392. cd php/tests && /bin/bash ./test.sh 5.5-zts && cd ../..
  393. # TODO(teboring): Add it back
  394. # pushd conformance
  395. # make test_php_zts_c
  396. # popd
  397. }
  398. build_php5.6() {
  399. use_php 5.6
  400. pushd php
  401. rm -rf vendor
  402. cp -r /usr/local/vendor-5.6 vendor
  403. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  404. phpunit
  405. popd
  406. pushd conformance
  407. make test_php
  408. popd
  409. }
  410. build_php5.6_c() {
  411. use_php 5.6
  412. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  413. cd php/tests && /bin/bash ./test.sh 5.6 && cd ../..
  414. # TODO(teboring): Add it back
  415. # pushd conformance
  416. # make test_php_c
  417. # popd
  418. }
  419. build_php5.6_zts_c() {
  420. use_php_zts 5.6
  421. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  422. cd php/tests && /bin/bash ./test.sh 5.6-zts && cd ../..
  423. # TODO(teboring): Add it back
  424. # pushd conformance
  425. # make test_php_zts_c
  426. # popd
  427. }
  428. build_php5.6_mac() {
  429. generate_php_test_proto
  430. # Install PHP
  431. curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6
  432. PHP_FOLDER=`find /usr/local -type d -name "php5-5.6*"` # The folder name may change upon time
  433. export PATH="$PHP_FOLDER/bin:$PATH"
  434. # Install phpunit
  435. curl https://phar.phpunit.de/phpunit-5.6.10.phar -L -o phpunit.phar
  436. chmod +x phpunit.phar
  437. sudo mv phpunit.phar /usr/local/bin/phpunit
  438. # Install valgrind
  439. echo "#! /bin/bash" > valgrind
  440. chmod ug+x valgrind
  441. sudo mv valgrind /usr/local/bin/valgrind
  442. # Test
  443. cd php/tests && /bin/bash ./test.sh && cd ../..
  444. # TODO(teboring): Add it back
  445. # pushd conformance
  446. # make test_php_c
  447. # popd
  448. }
  449. build_php7.0() {
  450. use_php 7.0
  451. pushd php
  452. rm -rf vendor
  453. cp -r /usr/local/vendor-7.0 vendor
  454. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  455. phpunit
  456. popd
  457. pushd conformance
  458. make test_php
  459. popd
  460. }
  461. build_php7.0_c() {
  462. use_php 7.0
  463. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  464. cd php/tests && /bin/bash ./test.sh 7.0 && cd ../..
  465. # TODO(teboring): Add it back
  466. # pushd conformance
  467. # make test_php_c
  468. # popd
  469. }
  470. build_php7.0_zts_c() {
  471. use_php_zts 7.0
  472. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  473. cd php/tests && /bin/bash ./test.sh 7.0-zts && cd ../..
  474. # TODO(teboring): Add it back.
  475. # pushd conformance
  476. # make test_php_zts_c
  477. # popd
  478. }
  479. build_php7.0_mac() {
  480. generate_php_test_proto
  481. # Install PHP
  482. curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0
  483. PHP_FOLDER=`find /usr/local -type d -name "php7-7.0*"` # The folder name may change upon time
  484. export PATH="$PHP_FOLDER/bin:$PATH"
  485. # Install phpunit
  486. curl https://phar.phpunit.de/phpunit-5.6.0.phar -L -o phpunit.phar
  487. chmod +x phpunit.phar
  488. sudo mv phpunit.phar /usr/local/bin/phpunit
  489. # Install valgrind
  490. echo "#! /bin/bash" > valgrind
  491. chmod ug+x valgrind
  492. sudo mv valgrind /usr/local/bin/valgrind
  493. # Test
  494. cd php/tests && /bin/bash ./test.sh && cd ../..
  495. # TODO(teboring): Add it back
  496. # pushd conformance
  497. # make test_php_c
  498. # popd
  499. }
  500. build_php_compatibility() {
  501. internal_build_cpp
  502. php/tests/compatibility_test.sh
  503. }
  504. build_php7.1() {
  505. use_php 7.1
  506. pushd php
  507. rm -rf vendor
  508. cp -r /usr/local/vendor-7.1 vendor
  509. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  510. phpunit
  511. popd
  512. pushd conformance
  513. # TODO(teboring): Add it back
  514. # make test_php
  515. popd
  516. }
  517. build_php7.1_c() {
  518. use_php 7.1
  519. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  520. cd php/tests && /bin/bash ./test.sh 7.1 && cd ../..
  521. pushd conformance
  522. # make test_php_c
  523. popd
  524. }
  525. build_php7.1_zts_c() {
  526. use_php_zts 7.1
  527. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  528. cd php/tests && /bin/bash ./test.sh 7.1-zts && cd ../..
  529. pushd conformance
  530. # make test_php_c
  531. popd
  532. }
  533. build_php_all_32() {
  534. build_php5.5
  535. build_php5.6
  536. build_php7.0
  537. build_php7.1
  538. build_php5.5_c
  539. build_php5.6_c
  540. build_php7.0_c
  541. build_php7.1_c
  542. build_php5.5_zts_c
  543. build_php5.6_zts_c
  544. build_php7.0_zts_c
  545. build_php7.1_zts_c
  546. }
  547. build_php_all() {
  548. build_php_all_32
  549. build_php_compatibility
  550. }
  551. # Note: travis currently does not support testing more than one language so the
  552. # .travis.yml cheats and claims to only be cpp. If they add multiple language
  553. # support, this should probably get updated to install steps and/or
  554. # rvm/gemfile/jdk/etc. entries rather than manually doing the work.
  555. # .travis.yml uses matrix.exclude to block the cases where app-get can't be
  556. # use to install things.
  557. # -------- main --------
  558. if [ "$#" -ne 1 ]; then
  559. echo "
  560. Usage: $0 { cpp |
  561. cpp_distcheck |
  562. csharp |
  563. java_jdk7 |
  564. java_oracle7 |
  565. java_compatibility |
  566. javanano_jdk7 |
  567. javanano_oracle7 |
  568. objectivec_ios |
  569. objectivec_ios_debug |
  570. objectivec_ios_release |
  571. objectivec_osx |
  572. objectivec_cocoapods_integration |
  573. python |
  574. python_cpp |
  575. python_compatibility |
  576. ruby21 |
  577. ruby22 |
  578. jruby |
  579. ruby_all |
  580. php5.5 |
  581. php5.5_c |
  582. php5.6 |
  583. php5.6_c |
  584. php7.0 |
  585. php7.0_c |
  586. php_compatibility |
  587. php7.1 |
  588. php7.1_c |
  589. php_all)
  590. "
  591. exit 1
  592. fi
  593. set -e # exit immediately on error
  594. set -x # display all commands
  595. eval "build_$1"