tests.sh 17 KB

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