Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 1 | #!/bin/bash |
Josh Haberman | 67c727c | 2016-03-04 14:21:18 -0800 | [diff] [blame] | 2 | # |
Feng Xiao | 9de4e64 | 2018-07-13 16:55:32 -0700 | [diff] [blame] | 3 | # Build and runs tests for the protobuf project. We use this script to run |
| 4 | # tests on kokoro (Ubuntu and MacOS). It can run locally as well but you |
| 5 | # will need to make sure the required compilers/tools are available. |
Josh Haberman | 0f8c25d | 2016-02-19 09:11:38 -0800 | [diff] [blame] | 6 | |
Josh Haberman | 181c7f2 | 2015-07-15 11:05:10 -0700 | [diff] [blame] | 7 | # For when some other test needs the C++ main build, including protoc and |
| 8 | # libprotobuf. |
Jie Luo | d1eeb85 | 2019-07-31 17:49:26 -0700 | [diff] [blame] | 9 | LAST_RELEASED=3.9.0 |
| 10 | |
Josh Haberman | 181c7f2 | 2015-07-15 11:05:10 -0700 | [diff] [blame] | 11 | internal_build_cpp() { |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 12 | if [ -f src/protoc ]; then |
| 13 | # Already built. |
| 14 | return |
| 15 | fi |
| 16 | |
Carlos O'Ryan | 3c5442a | 2018-03-26 16:54:32 -0400 | [diff] [blame] | 17 | # Initialize any submodules. |
| 18 | git submodule update --init --recursive |
| 19 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 20 | ./autogen.sh |
Ben Wolsieffer | 56b40a8 | 2018-10-04 20:25:10 -0400 | [diff] [blame] | 21 | ./configure CXXFLAGS="-fPIC -std=c++11" # -fPIC is needed for python cpp test. |
| 22 | # See python/setup.py for more details |
Joshua Haberman | f5e8ee4 | 2019-03-06 12:04:17 -0800 | [diff] [blame] | 23 | make -j$(nproc) |
Josh Haberman | 181c7f2 | 2015-07-15 11:05:10 -0700 | [diff] [blame] | 24 | } |
| 25 | |
| 26 | build_cpp() { |
| 27 | internal_build_cpp |
Joshua Haberman | f5e8ee4 | 2019-03-06 12:04:17 -0800 | [diff] [blame] | 28 | make check -j$(nproc) || (cat src/test-suite.log; false) |
Bo Yang | fd332d1 | 2016-09-30 00:07:47 +0000 | [diff] [blame] | 29 | cd conformance && make test_cpp && cd .. |
Josh Haberman | cb36bde | 2016-04-29 09:52:20 -0700 | [diff] [blame] | 30 | |
Thomas Van Lenten | bc9d077 | 2016-12-08 16:19:58 -0500 | [diff] [blame] | 31 | # The benchmark code depends on cmake, so test if it is installed before |
| 32 | # trying to do the build. |
Thomas Van Lenten | bc9d077 | 2016-12-08 16:19:58 -0500 | [diff] [blame] | 33 | if [[ $(type cmake 2>/dev/null) ]]; then |
| 34 | # Verify benchmarking code can build successfully. |
Yilun Chong | 34843ed | 2017-12-13 14:34:52 -0800 | [diff] [blame] | 35 | cd benchmarks && make cpp-benchmark && cd .. |
Thomas Van Lenten | bc9d077 | 2016-12-08 16:19:58 -0500 | [diff] [blame] | 36 | else |
| 37 | echo "" |
| 38 | echo "WARNING: Skipping validation of the bench marking code, cmake isn't installed." |
| 39 | echo "" |
| 40 | fi |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 41 | } |
| 42 | |
Hao Nguyen | 4f8a635 | 2019-01-23 10:02:51 -0800 | [diff] [blame] | 43 | build_cpp_tcmalloc() { |
| 44 | internal_build_cpp |
| 45 | ./configure LIBS=-ltcmalloc && make clean && make \ |
| 46 | PTHREAD_CFLAGS='-pthread -DGOOGLE_PROTOBUF_HEAP_CHECK_DRACONIAN' \ |
| 47 | check |
| 48 | cd src |
Adam Cozzette | d135f07 | 2019-01-25 10:28:52 -0800 | [diff] [blame] | 49 | PPROF_PATH=/usr/bin/google-pprof HEAPCHECK=strict ./protobuf-test |
Hao Nguyen | 4f8a635 | 2019-01-23 10:02:51 -0800 | [diff] [blame] | 50 | } |
| 51 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 52 | build_cpp_distcheck() { |
Adam Cozzette | 45aba80 | 2019-03-11 14:39:49 -0700 | [diff] [blame] | 53 | grep -q -- "-Og" src/Makefile.am && |
| 54 | echo "The -Og flag is incompatible with Clang versions older than 4.0." && |
| 55 | exit 1 |
| 56 | |
Carlos O'Ryan | 3c5442a | 2018-03-26 16:54:32 -0400 | [diff] [blame] | 57 | # Initialize any submodules. |
| 58 | git submodule update --init --recursive |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 59 | ./autogen.sh |
| 60 | ./configure |
Feng Xiao | a4f68b1 | 2016-07-19 17:20:31 -0700 | [diff] [blame] | 61 | make dist |
| 62 | |
| 63 | # List all files that should be included in the distribution package. |
Jisi Liu | 55fdbe5 | 2017-08-23 11:35:48 -0700 | [diff] [blame] | 64 | git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|php\|cmake\|examples\|src/google/protobuf/.*\.proto\)" |\ |
Derek Perez | d1b2eff | 2021-04-20 09:36:06 -0700 | [diff] [blame] | 65 | grep -v ".gitignore" | grep -v "java/lite/proguard.pgcfg" |\ |
David L. Jones | f130827 | 2020-03-06 16:37:15 -0800 | [diff] [blame] | 66 | grep -v "python/compatibility_tests" | grep -v "python/docs" | grep -v "python/.repo-metadata.json" |\ |
David L. Jones | ff06e23 | 2020-08-31 10:40:57 -0700 | [diff] [blame] | 67 | grep -v "python/protobuf_distutils" | grep -v "csharp/compatibility_tests" > dist.lst |
Feng Xiao | a4f68b1 | 2016-07-19 17:20:31 -0700 | [diff] [blame] | 68 | # Unzip the dist tar file. |
| 69 | DIST=`ls *.tar.gz` |
| 70 | tar -xf $DIST |
| 71 | cd ${DIST//.tar.gz} |
| 72 | # Check if every file exists in the dist tar file. |
| 73 | FILES_MISSING="" |
| 74 | for FILE in $(<../dist.lst); do |
Feng Xiao | acd5b05 | 2018-08-09 21:21:01 -0700 | [diff] [blame] | 75 | [ -f "$FILE" ] || { |
Feng Xiao | a4f68b1 | 2016-07-19 17:20:31 -0700 | [diff] [blame] | 76 | echo "$FILE is not found!" |
| 77 | FILES_MISSING="$FILE $FILES_MISSING" |
Feng Xiao | acd5b05 | 2018-08-09 21:21:01 -0700 | [diff] [blame] | 78 | } |
Feng Xiao | a4f68b1 | 2016-07-19 17:20:31 -0700 | [diff] [blame] | 79 | done |
| 80 | cd .. |
| 81 | if [ ! -z "$FILES_MISSING" ]; then |
| 82 | echo "Missing files in EXTRA_DIST: $FILES_MISSING" |
| 83 | exit 1 |
| 84 | fi |
| 85 | |
| 86 | # Do the regular dist-check for C++. |
Joshua Haberman | f5e8ee4 | 2019-03-06 12:04:17 -0800 | [diff] [blame] | 87 | make distcheck -j$(nproc) |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 88 | } |
| 89 | |
Hao Nguyen | f85c823 | 2019-03-07 14:34:28 -0800 | [diff] [blame] | 90 | build_dist_install() { |
| 91 | # Initialize any submodules. |
| 92 | git submodule update --init --recursive |
| 93 | ./autogen.sh |
| 94 | ./configure |
| 95 | make dist |
| 96 | |
| 97 | # Unzip the dist tar file and install it. |
| 98 | DIST=`ls *.tar.gz` |
| 99 | tar -xf $DIST |
| 100 | pushd ${DIST//.tar.gz} |
| 101 | ./configure && make check -j4 && make install |
| 102 | |
| 103 | export LD_LIBRARY_PATH=/usr/local/lib |
| 104 | |
| 105 | # Try to install Java |
| 106 | pushd java |
Adam Cozzette | ca29550 | 2021-05-12 14:42:15 -0700 | [diff] [blame] | 107 | use_java jdk8 |
Hao Nguyen | f85c823 | 2019-03-07 14:34:28 -0800 | [diff] [blame] | 108 | $MVN install |
| 109 | popd |
| 110 | |
| 111 | # Try to install Python |
| 112 | virtualenv --no-site-packages venv |
| 113 | source venv/bin/activate |
| 114 | pushd python |
| 115 | python setup.py clean build sdist |
| 116 | pip install dist/protobuf-*.tar.gz |
| 117 | popd |
| 118 | deactivate |
| 119 | rm -rf python/venv |
| 120 | } |
| 121 | |
Jan Tattermusch | ddb36ef | 2015-05-18 17:34:02 -0700 | [diff] [blame] | 122 | build_csharp() { |
Jon Skeet | 9a9a66e | 2017-10-25 08:03:50 +0100 | [diff] [blame] | 123 | # Required for conformance tests and to regenerate protos. |
Jon Skeet | b6defa7 | 2015-08-04 10:01:40 +0100 | [diff] [blame] | 124 | internal_build_cpp |
Josh Haberman | ffc8118 | 2016-02-22 15:39:29 -0800 | [diff] [blame] | 125 | NUGET=/usr/local/bin/nuget.exe |
Jon Skeet | b6defa7 | 2015-08-04 10:01:40 +0100 | [diff] [blame] | 126 | |
Jan Tattermusch | 67fee07 | 2019-03-12 04:48:10 -0400 | [diff] [blame] | 127 | # Disable some unwanted dotnet options |
| 128 | export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true |
| 129 | export DOTNET_CLI_TELEMETRY_OPTOUT=true |
| 130 | |
| 131 | # TODO(jtattermusch): is this still needed with "first time experience" |
| 132 | # disabled? |
Jon Skeet | 10a8fb4 | 2016-07-14 22:01:47 +0100 | [diff] [blame] | 133 | # Perform "dotnet new" once to get the setup preprocessing out of the |
| 134 | # way. That spews a lot of output (including backspaces) into logs |
| 135 | # otherwise, and can cause problems. It doesn't matter if this step |
| 136 | # is performed multiple times; it's cheap after the first time anyway. |
Jon Skeet | f26e8c2 | 2017-05-04 08:51:46 +0100 | [diff] [blame] | 137 | # (It also doesn't matter if it's unnecessary, which it will be on some |
| 138 | # systems. It's necessary on Jenkins in order to avoid unprintable |
| 139 | # characters appearing in the JUnit output.) |
Jon Skeet | 10a8fb4 | 2016-07-14 22:01:47 +0100 | [diff] [blame] | 140 | mkdir dotnettmp |
| 141 | (cd dotnettmp; dotnet new > /dev/null) |
| 142 | rm -rf dotnettmp |
| 143 | |
Jon Skeet | 9a9a66e | 2017-10-25 08:03:50 +0100 | [diff] [blame] | 144 | # Check that the protos haven't broken C# codegen. |
| 145 | # TODO(jonskeet): Fail if regenerating creates any changes. |
| 146 | csharp/generate_protos.sh |
Brent Shaffer | 6737954 | 2018-05-23 16:43:30 -0700 | [diff] [blame] | 147 | |
Jan Tattermusch | ddb36ef | 2015-05-18 17:34:02 -0700 | [diff] [blame] | 148 | csharp/buildall.sh |
Josh Haberman | e891c29 | 2015-12-30 16:03:49 -0800 | [diff] [blame] | 149 | cd conformance && make test_csharp && cd .. |
Jie Luo | 7288689 | 2017-02-09 16:49:52 -0800 | [diff] [blame] | 150 | |
| 151 | # Run csharp compatibility test between 3.0.0 and the current version. |
| 152 | csharp/compatibility_tests/v3.0.0/test.sh 3.0.0 |
Jie Luo | e399308 | 2019-07-25 14:31:00 -0700 | [diff] [blame] | 153 | |
Jie Luo | e399308 | 2019-07-25 14:31:00 -0700 | [diff] [blame] | 154 | # Run csharp compatibility test between last released and the current version. |
| 155 | csharp/compatibility_tests/v3.0.0/test.sh $LAST_RELEASED |
Jan Tattermusch | ddb36ef | 2015-05-18 17:34:02 -0700 | [diff] [blame] | 156 | } |
| 157 | |
Tim Swast | 7e31c4d | 2015-11-20 15:32:53 -0800 | [diff] [blame] | 158 | build_golang() { |
| 159 | # Go build needs `protoc`. |
| 160 | internal_build_cpp |
| 161 | # Add protoc to the path so that the examples build finds it. |
| 162 | export PATH="`pwd`/src:$PATH" |
| 163 | |
Tim Swast | 7e31c4d | 2015-11-20 15:32:53 -0800 | [diff] [blame] | 164 | export GOPATH="$HOME/gocode" |
Feng Xiao | a0a17e2 | 2018-08-23 15:35:52 -0700 | [diff] [blame] | 165 | mkdir -p "$GOPATH/src/github.com/protocolbuffers" |
Joe Tsai | 654edd8 | 2020-05-12 13:02:09 -0700 | [diff] [blame] | 166 | mkdir -p "$GOPATH/src/github.com/golang" |
Feng Xiao | afe98de | 2018-08-22 11:55:30 -0700 | [diff] [blame] | 167 | rm -f "$GOPATH/src/github.com/protocolbuffers/protobuf" |
Joe Tsai | 654edd8 | 2020-05-12 13:02:09 -0700 | [diff] [blame] | 168 | rm -f "$GOPATH/src/github.com/golang/protobuf" |
Feng Xiao | afe98de | 2018-08-22 11:55:30 -0700 | [diff] [blame] | 169 | ln -s "`pwd`" "$GOPATH/src/github.com/protocolbuffers/protobuf" |
Tim Swast | 7e31c4d | 2015-11-20 15:32:53 -0800 | [diff] [blame] | 170 | export PATH="$GOPATH/bin:$PATH" |
Joe Tsai | 654edd8 | 2020-05-12 13:02:09 -0700 | [diff] [blame] | 171 | (cd $GOPATH/src/github.com/golang && git clone https://github.com/golang/protobuf.git && cd protobuf && git checkout v1.3.5) |
| 172 | go install github.com/golang/protobuf/protoc-gen-go |
Tim Swast | 7e31c4d | 2015-11-20 15:32:53 -0800 | [diff] [blame] | 173 | |
Feng Xiao | 8136ccb | 2017-09-12 12:00:20 -0700 | [diff] [blame] | 174 | cd examples && PROTO_PATH="-I../src -I." make gotest && cd .. |
Tim Swast | 7e31c4d | 2015-11-20 15:32:53 -0800 | [diff] [blame] | 175 | } |
| 176 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 177 | use_java() { |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 178 | version=$1 |
| 179 | case "$version" in |
Tomo Suzuki | 7051725 | 2019-06-26 15:28:49 -0400 | [diff] [blame] | 180 | jdk8) |
| 181 | export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH |
| 182 | export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 |
| 183 | ;; |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 184 | jdk7) |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 185 | export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH |
Feng Xiao | ad49ed7 | 2016-07-21 11:37:46 -0700 | [diff] [blame] | 186 | export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 187 | ;; |
| 188 | oracle7) |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 189 | export PATH=/usr/lib/jvm/java-7-oracle/bin:$PATH |
Feng Xiao | ad49ed7 | 2016-07-21 11:37:46 -0700 | [diff] [blame] | 190 | export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 191 | ;; |
| 192 | esac |
| 193 | |
Feng Xiao | 9de4e64 | 2018-07-13 16:55:32 -0700 | [diff] [blame] | 194 | MAVEN_LOCAL_REPOSITORY=/var/maven_local_repository |
Yilun Chong | 2b7ee38 | 2018-09-23 17:07:02 -0700 | [diff] [blame] | 195 | MVN="$MVN -e -X -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$MAVEN_LOCAL_REPOSITORY" |
Josh Haberman | 1ee0fda | 2016-03-03 16:02:55 -0800 | [diff] [blame] | 196 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 197 | which java |
| 198 | java -version |
Feng Xiao | ad49ed7 | 2016-07-21 11:37:46 -0700 | [diff] [blame] | 199 | $MVN -version |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 200 | } |
| 201 | |
Brian Wignall | a104dff | 2020-01-08 13:18:20 -0500 | [diff] [blame] | 202 | # --batch-mode suppresses download progress output that spams the logs. |
Josh Haberman | b28b3f6 | 2016-02-20 12:17:10 -0800 | [diff] [blame] | 203 | MVN="mvn --batch-mode" |
Josh Haberman | d08c39c | 2016-02-20 12:03:39 -0800 | [diff] [blame] | 204 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 205 | build_java() { |
Josh Haberman | 2f3f1de | 2016-03-01 15:37:17 -0800 | [diff] [blame] | 206 | version=$1 |
| 207 | dir=java_$version |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 208 | # Java build needs `protoc`. |
Josh Haberman | 181c7f2 | 2015-07-15 11:05:10 -0700 | [diff] [blame] | 209 | internal_build_cpp |
Josh Haberman | 2f3f1de | 2016-03-01 15:37:17 -0800 | [diff] [blame] | 210 | cp -r java $dir |
Adam Cozzette | 5a9367a | 2021-05-11 12:07:45 -0700 | [diff] [blame] | 211 | cd $dir && $MVN clean |
| 212 | # Skip the Kotlin tests on Oracle 7 |
| 213 | if [ "$version" == "oracle7" ]; then |
| 214 | $MVN test -pl bom,lite,core,util |
| 215 | else |
| 216 | $MVN test |
| 217 | fi |
Feng Xiao | 9e5fb55 | 2015-12-21 11:08:18 -0800 | [diff] [blame] | 218 | cd ../.. |
| 219 | } |
| 220 | |
Josh Haberman | 2f3f1de | 2016-03-01 15:37:17 -0800 | [diff] [blame] | 221 | # The conformance tests are hard-coded to work with the $ROOT/java directory. |
| 222 | # So this can't run in parallel with two different sets of tests. |
Feng Xiao | 9e5fb55 | 2015-12-21 11:08:18 -0800 | [diff] [blame] | 223 | build_java_with_conformance_tests() { |
| 224 | # Java build needs `protoc`. |
| 225 | internal_build_cpp |
Tomo Suzuki | ca25bad | 2019-10-22 13:42:35 -0400 | [diff] [blame] | 226 | # This local installation avoids the problem caused by a new version not yet in Maven Central |
| 227 | cd java/bom && $MVN install |
| 228 | cd ../.. |
Josh Haberman | d08c39c | 2016-02-20 12:03:39 -0800 | [diff] [blame] | 229 | cd java && $MVN test && $MVN install |
Josh Haberman | 2f3f1de | 2016-03-01 15:37:17 -0800 | [diff] [blame] | 230 | cd util && $MVN package assembly:single |
Feng Xiao | af81dcf | 2015-12-21 03:25:59 -0800 | [diff] [blame] | 231 | cd ../.. |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 232 | cd conformance && make test_java && cd .. |
| 233 | } |
| 234 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 235 | build_java_jdk7() { |
| 236 | use_java jdk7 |
Feng Xiao | 9e5fb55 | 2015-12-21 11:08:18 -0800 | [diff] [blame] | 237 | build_java_with_conformance_tests |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 238 | } |
| 239 | build_java_oracle7() { |
| 240 | use_java oracle7 |
Josh Haberman | 2f3f1de | 2016-03-01 15:37:17 -0800 | [diff] [blame] | 241 | build_java oracle7 |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 242 | } |
Tomo Suzuki | 7051725 | 2019-06-26 15:28:49 -0400 | [diff] [blame] | 243 | build_java_linkage_monitor() { |
Tomo Suzuki | bedef1e | 2019-07-01 17:03:04 -0400 | [diff] [blame] | 244 | # Linkage Monitor checks compatibility with other Google libraries |
| 245 | # https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor |
| 246 | |
Tomo Suzuki | 7051725 | 2019-06-26 15:28:49 -0400 | [diff] [blame] | 247 | use_java jdk8 |
Tomo Suzuki | bedef1e | 2019-07-01 17:03:04 -0400 | [diff] [blame] | 248 | internal_build_cpp |
| 249 | |
| 250 | # Linkage Monitor uses $HOME/.m2 local repository |
| 251 | MVN="mvn -e -B -Dhttps.protocols=TLSv1.2" |
| 252 | cd java |
Tomo Suzuki | bedef1e | 2019-07-01 17:03:04 -0400 | [diff] [blame] | 253 | # Installs the snapshot version locally |
| 254 | $MVN install -Dmaven.test.skip=true |
| 255 | |
| 256 | # Linkage Monitor uses the snapshot versions installed in $HOME/.m2 to verify compatibility |
| 257 | JAR=linkage-monitor-latest-all-deps.jar |
| 258 | curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}" |
| 259 | # Fails if there's new linkage errors compared with baseline |
| 260 | java -jar $JAR com.google.cloud:libraries-bom |
Tomo Suzuki | 7051725 | 2019-06-26 15:28:49 -0400 | [diff] [blame] | 261 | } |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 262 | |
Thomas Van Lenten | 9642b82 | 2015-06-10 17:21:23 -0400 | [diff] [blame] | 263 | build_objectivec_ios() { |
Thomas Van Lenten | 368a2f4 | 2016-05-24 11:27:33 -0400 | [diff] [blame] | 264 | # Reused the build script that takes care of configuring and ensuring things |
| 265 | # are up to date. The OS X test runs the objc conformance test, so skip it |
| 266 | # here. |
Thomas Van Lenten | 368a2f4 | 2016-05-24 11:27:33 -0400 | [diff] [blame] | 267 | objectivec/DevTools/full_mac_build.sh \ |
Thomas Van Lenten | bd00671 | 2019-01-07 16:42:22 -0500 | [diff] [blame] | 268 | --core-only --skip-xcode-osx --skip-xcode-tvos --skip-objc-conformance "$@" |
Thomas Van Lenten | 368a2f4 | 2016-05-24 11:27:33 -0400 | [diff] [blame] | 269 | } |
| 270 | |
| 271 | build_objectivec_ios_debug() { |
| 272 | build_objectivec_ios --skip-xcode-release |
| 273 | } |
| 274 | |
| 275 | build_objectivec_ios_release() { |
| 276 | build_objectivec_ios --skip-xcode-debug |
Thomas Van Lenten | 9642b82 | 2015-06-10 17:21:23 -0400 | [diff] [blame] | 277 | } |
| 278 | |
| 279 | build_objectivec_osx() { |
Thomas Van Lenten | 368a2f4 | 2016-05-24 11:27:33 -0400 | [diff] [blame] | 280 | # Reused the build script that takes care of configuring and ensuring things |
| 281 | # are up to date. |
| 282 | objectivec/DevTools/full_mac_build.sh \ |
Thomas Van Lenten | bd00671 | 2019-01-07 16:42:22 -0500 | [diff] [blame] | 283 | --core-only --skip-xcode-ios --skip-xcode-tvos |
| 284 | } |
| 285 | |
| 286 | build_objectivec_tvos() { |
| 287 | # Reused the build script that takes care of configuring and ensuring things |
| 288 | # are up to date. The OS X test runs the objc conformance test, so skip it |
| 289 | # here. |
| 290 | objectivec/DevTools/full_mac_build.sh \ |
| 291 | --core-only --skip-xcode-ios --skip-xcode-osx --skip-objc-conformance "$@" |
| 292 | } |
| 293 | |
| 294 | build_objectivec_tvos_debug() { |
| 295 | build_objectivec_tvos --skip-xcode-release |
| 296 | } |
| 297 | |
| 298 | build_objectivec_tvos_release() { |
| 299 | build_objectivec_tvos --skip-xcode-debug |
Thomas Van Lenten | 9642b82 | 2015-06-10 17:21:23 -0400 | [diff] [blame] | 300 | } |
Dan O'Reilly | 5de2a81 | 2015-08-20 18:19:56 -0400 | [diff] [blame] | 301 | |
Sergio Campamá | f0c1492 | 2016-06-14 11:26:01 -0700 | [diff] [blame] | 302 | build_objectivec_cocoapods_integration() { |
Sergio Campamá | f0c1492 | 2016-06-14 11:26:01 -0700 | [diff] [blame] | 303 | objectivec/Tests/CocoaPods/run_tests.sh |
| 304 | } |
| 305 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 306 | build_python() { |
Josh Haberman | 181c7f2 | 2015-07-15 11:05:10 -0700 | [diff] [blame] | 307 | internal_build_cpp |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 308 | cd python |
Dan O'Reilly | 76f8a3f | 2015-08-21 18:51:47 -0400 | [diff] [blame] | 309 | if [ $(uname -s) == "Linux" ]; then |
Jie Luo | 610e433 | 2017-08-22 16:23:21 -0700 | [diff] [blame] | 310 | envlist=py\{27,33,34,35,36\}-python |
Dan O'Reilly | 76f8a3f | 2015-08-21 18:51:47 -0400 | [diff] [blame] | 311 | else |
David L. Jones | 0f9ae07 | 2020-07-13 20:54:22 -0700 | [diff] [blame] | 312 | envlist=py\{27,36\}-python |
Dan O'Reilly | 76f8a3f | 2015-08-21 18:51:47 -0400 | [diff] [blame] | 313 | fi |
David L. Jones | b774da0 | 2020-09-30 15:56:17 -0700 | [diff] [blame] | 314 | python -m tox -e $envlist |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 315 | cd .. |
| 316 | } |
| 317 | |
Paul Yang | 4dec4f9 | 2018-12-18 18:07:24 -0800 | [diff] [blame] | 318 | build_python_version() { |
| 319 | internal_build_cpp |
| 320 | cd python |
| 321 | envlist=$1 |
David L. Jones | b774da0 | 2020-09-30 15:56:17 -0700 | [diff] [blame] | 322 | python -m tox -e $envlist |
Paul Yang | 4dec4f9 | 2018-12-18 18:07:24 -0800 | [diff] [blame] | 323 | cd .. |
| 324 | } |
| 325 | |
| 326 | build_python27() { |
| 327 | build_python_version py27-python |
| 328 | } |
| 329 | |
| 330 | build_python33() { |
| 331 | build_python_version py33-python |
| 332 | } |
| 333 | |
| 334 | build_python34() { |
| 335 | build_python_version py34-python |
| 336 | } |
| 337 | |
| 338 | build_python35() { |
| 339 | build_python_version py35-python |
| 340 | } |
| 341 | |
| 342 | build_python36() { |
| 343 | build_python_version py36-python |
| 344 | } |
| 345 | |
| 346 | build_python37() { |
| 347 | build_python_version py37-python |
| 348 | } |
| 349 | |
Jie Luo | 7faab5e | 2019-12-13 15:49:18 -0800 | [diff] [blame] | 350 | build_python38() { |
| 351 | build_python_version py38-python |
| 352 | } |
| 353 | |
Bu Sun Kim | 51c80ce | 2020-12-04 21:16:47 +0000 | [diff] [blame] | 354 | build_python39() { |
Bu Sun Kim | 523b109 | 2020-12-15 17:08:56 -0700 | [diff] [blame] | 355 | build_python_version py39-python |
Bu Sun Kim | 51c80ce | 2020-12-04 21:16:47 +0000 | [diff] [blame] | 356 | } |
| 357 | |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 358 | build_python_cpp() { |
Josh Haberman | 181c7f2 | 2015-07-15 11:05:10 -0700 | [diff] [blame] | 359 | internal_build_cpp |
Bo Yang | fd332d1 | 2016-09-30 00:07:47 +0000 | [diff] [blame] | 360 | export LD_LIBRARY_PATH=../src/.libs # for Linux |
| 361 | export DYLD_LIBRARY_PATH=../src/.libs # for OS X |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 362 | cd python |
Dan O'Reilly | 76f8a3f | 2015-08-21 18:51:47 -0400 | [diff] [blame] | 363 | if [ $(uname -s) == "Linux" ]; then |
Jie Luo | 610e433 | 2017-08-22 16:23:21 -0700 | [diff] [blame] | 364 | envlist=py\{27,33,34,35,36\}-cpp |
Dan O'Reilly | 76f8a3f | 2015-08-21 18:51:47 -0400 | [diff] [blame] | 365 | else |
David L. Jones | 0f9ae07 | 2020-07-13 20:54:22 -0700 | [diff] [blame] | 366 | envlist=py\{27,36\}-cpp |
Dan O'Reilly | 76f8a3f | 2015-08-21 18:51:47 -0400 | [diff] [blame] | 367 | fi |
| 368 | tox -e $envlist |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 369 | cd .. |
| 370 | } |
| 371 | |
Paul Yang | 4dec4f9 | 2018-12-18 18:07:24 -0800 | [diff] [blame] | 372 | build_python_cpp_version() { |
| 373 | internal_build_cpp |
| 374 | export LD_LIBRARY_PATH=../src/.libs # for Linux |
| 375 | export DYLD_LIBRARY_PATH=../src/.libs # for OS X |
| 376 | cd python |
| 377 | envlist=$1 |
| 378 | tox -e $envlist |
| 379 | cd .. |
| 380 | } |
| 381 | |
| 382 | build_python27_cpp() { |
| 383 | build_python_cpp_version py27-cpp |
| 384 | } |
| 385 | |
| 386 | build_python33_cpp() { |
| 387 | build_python_cpp_version py33-cpp |
| 388 | } |
| 389 | |
| 390 | build_python34_cpp() { |
| 391 | build_python_cpp_version py34-cpp |
| 392 | } |
| 393 | |
| 394 | build_python35_cpp() { |
| 395 | build_python_cpp_version py35-cpp |
| 396 | } |
| 397 | |
| 398 | build_python36_cpp() { |
| 399 | build_python_cpp_version py36-cpp |
| 400 | } |
| 401 | |
| 402 | build_python37_cpp() { |
| 403 | build_python_cpp_version py37-cpp |
| 404 | } |
| 405 | |
Jie Luo | 7faab5e | 2019-12-13 15:49:18 -0800 | [diff] [blame] | 406 | build_python38_cpp() { |
| 407 | build_python_cpp_version py38-cpp |
| 408 | } |
| 409 | |
Bu Sun Kim | 51c80ce | 2020-12-04 21:16:47 +0000 | [diff] [blame] | 410 | build_python39_cpp() { |
Bu Sun Kim | 523b109 | 2020-12-15 17:08:56 -0700 | [diff] [blame] | 411 | build_python_cpp_version py39-cpp |
Bu Sun Kim | 51c80ce | 2020-12-04 21:16:47 +0000 | [diff] [blame] | 412 | } |
| 413 | |
Paul Yang | 78ba021 | 2018-07-02 15:11:36 -0700 | [diff] [blame] | 414 | build_ruby23() { |
| 415 | internal_build_cpp # For conformance tests. |
Paul Yang | 333b3ce | 2018-10-18 11:16:55 -0700 | [diff] [blame] | 416 | cd ruby && bash travis-test.sh ruby-2.3.8 && cd .. |
Paul Yang | 78ba021 | 2018-07-02 15:11:36 -0700 | [diff] [blame] | 417 | } |
| 418 | build_ruby24() { |
| 419 | internal_build_cpp # For conformance tests. |
| 420 | cd ruby && bash travis-test.sh ruby-2.4 && cd .. |
| 421 | } |
| 422 | build_ruby25() { |
| 423 | internal_build_cpp # For conformance tests. |
Paul Yang | 333b3ce | 2018-10-18 11:16:55 -0700 | [diff] [blame] | 424 | cd ruby && bash travis-test.sh ruby-2.5.1 && cd .. |
Paul Yang | 78ba021 | 2018-07-02 15:11:36 -0700 | [diff] [blame] | 425 | } |
Paul Yang | de9e1a0 | 2019-01-03 14:25:50 -0800 | [diff] [blame] | 426 | build_ruby26() { |
| 427 | internal_build_cpp # For conformance tests. |
| 428 | cd ruby && bash travis-test.sh ruby-2.6.0 && cd .. |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 429 | } |
Eric Walker | 2c8364b | 2020-04-17 13:20:38 -0400 | [diff] [blame] | 430 | build_ruby27() { |
| 431 | internal_build_cpp # For conformance tests. |
| 432 | cd ruby && bash travis-test.sh ruby-2.7.0 && cd .. |
| 433 | } |
Joshua Haberman | 9abf6e2 | 2021-01-13 12:16:25 -0800 | [diff] [blame] | 434 | build_ruby30() { |
| 435 | internal_build_cpp # For conformance tests. |
| 436 | cd ruby && bash travis-test.sh ruby-3.0.0 && cd .. |
| 437 | } |
Chris Fallin | 20e94b2 | 2015-05-13 16:43:48 -0700 | [diff] [blame] | 438 | |
Rob Widmer | 24b2094 | 2020-09-16 11:00:29 -0400 | [diff] [blame] | 439 | build_jruby() { |
| 440 | internal_build_cpp # For conformance tests. |
| 441 | cd ruby && bash travis-test.sh jruby-9.2.11.1 && cd .. |
| 442 | } |
| 443 | |
Josh Haberman | e9cf31e | 2015-12-21 15:18:17 -0800 | [diff] [blame] | 444 | build_javascript() { |
| 445 | internal_build_cpp |
Joshua Haberman | 79b1c3b | 2020-05-13 16:16:27 -0700 | [diff] [blame] | 446 | NODE_VERSION=node-v12.16.3-darwin-x64 |
| 447 | NODE_TGZ="$NODE_VERSION.tar.gz" |
| 448 | pushd /tmp |
| 449 | curl -OL https://nodejs.org/dist/v12.16.3/$NODE_TGZ |
| 450 | tar zxvf $NODE_TGZ |
| 451 | export PATH=$PATH:`pwd`/$NODE_VERSION/bin |
| 452 | popd |
Josh Haberman | 0d2d8bc | 2015-12-28 06:43:42 -0800 | [diff] [blame] | 453 | cd js && npm install && npm test && cd .. |
Josh Haberman | f873d32 | 2016-06-08 12:38:15 -0700 | [diff] [blame] | 454 | cd conformance && make test_nodejs && cd .. |
Josh Haberman | e9cf31e | 2015-12-21 15:18:17 -0800 | [diff] [blame] | 455 | } |
| 456 | |
Bo Yang | c8bd36e | 2016-09-30 19:07:33 +0000 | [diff] [blame] | 457 | use_php() { |
| 458 | VERSION=$1 |
Paul Yang | d7c4409 | 2018-12-18 10:57:03 -0800 | [diff] [blame] | 459 | export PATH=/usr/local/php-${VERSION}/bin:$PATH |
Joshua Haberman | f1ce866 | 2020-06-09 15:40:29 -0700 | [diff] [blame] | 460 | internal_build_cpp |
Bo Yang | c8bd36e | 2016-09-30 19:07:33 +0000 | [diff] [blame] | 461 | } |
| 462 | |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 463 | build_php() { |
| 464 | use_php $1 |
Paul Yang | 525be94 | 2021-02-04 09:50:28 -0800 | [diff] [blame] | 465 | pushd php |
| 466 | rm -rf vendor |
| 467 | composer update |
| 468 | composer test |
| 469 | popd |
| 470 | (cd conformance && make test_php) |
| 471 | } |
| 472 | |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 473 | test_php_c() { |
Paul Yang | e3e38b8 | 2016-12-08 14:39:20 -0800 | [diff] [blame] | 474 | pushd php |
Bo Yang | fd332d1 | 2016-09-30 00:07:47 +0000 | [diff] [blame] | 475 | rm -rf vendor |
Paul Yang | d7c4409 | 2018-12-18 10:57:03 -0800 | [diff] [blame] | 476 | composer update |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 477 | composer test_c |
Paul Yang | e3e38b8 | 2016-12-08 14:39:20 -0800 | [diff] [blame] | 478 | popd |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 479 | (cd conformance && make test_php_c) |
Bo Yang | fd332d1 | 2016-09-30 00:07:47 +0000 | [diff] [blame] | 480 | } |
| 481 | |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 482 | build_php_c() { |
| 483 | use_php $1 |
| 484 | test_php_c |
Paul Yang | 190b527 | 2017-04-19 16:23:51 -0700 | [diff] [blame] | 485 | } |
| 486 | |
| 487 | build_php7.0_mac() { |
Joshua Haberman | f1ce866 | 2020-06-09 15:40:29 -0700 | [diff] [blame] | 488 | internal_build_cpp |
Paul Yang | 190b527 | 2017-04-19 16:23:51 -0700 | [diff] [blame] | 489 | # Install PHP |
| 490 | curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0 |
Joshua Haberman | 27ba0c5 | 2020-05-13 15:36:21 -0700 | [diff] [blame] | 491 | PHP_FOLDER=`find /usr/local -type d -name "php5-7.0*"` # The folder name may change upon time |
| 492 | test ! -z "$PHP_FOLDER" |
Paul Yang | 190b527 | 2017-04-19 16:23:51 -0700 | [diff] [blame] | 493 | export PATH="$PHP_FOLDER/bin:$PATH" |
| 494 | |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 495 | # Install Composer |
| 496 | wget https://getcomposer.org/download/2.0.13/composer.phar --progress=dot:mega -O /usr/local/bin/composer |
| 497 | chmod a+x /usr/local/bin/composer |
| 498 | |
Paul Yang | 190b527 | 2017-04-19 16:23:51 -0700 | [diff] [blame] | 499 | # Install valgrind |
| 500 | echo "#! /bin/bash" > valgrind |
| 501 | chmod ug+x valgrind |
| 502 | sudo mv valgrind /usr/local/bin/valgrind |
| 503 | |
| 504 | # Test |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 505 | test_php_c |
Bo Yang | 34cdaf4 | 2016-10-03 21:59:58 +0000 | [diff] [blame] | 506 | } |
| 507 | |
Joshua Haberman | 27ba0c5 | 2020-05-13 15:36:21 -0700 | [diff] [blame] | 508 | build_php7.3_mac() { |
Joshua Haberman | f1ce866 | 2020-06-09 15:40:29 -0700 | [diff] [blame] | 509 | internal_build_cpp |
Paul Yang | 8521957 | 2020-01-30 12:45:47 -0800 | [diff] [blame] | 510 | # Install PHP |
Joshua Haberman | 27ba0c5 | 2020-05-13 15:36:21 -0700 | [diff] [blame] | 511 | # We can't test PHP 7.4 with these binaries yet: |
| 512 | # https://github.com/liip/php-osx/issues/276 |
| 513 | curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3 |
| 514 | PHP_FOLDER=`find /usr/local -type d -name "php5-7.3*"` # The folder name may change upon time |
| 515 | test ! -z "$PHP_FOLDER" |
Paul Yang | 8521957 | 2020-01-30 12:45:47 -0800 | [diff] [blame] | 516 | export PATH="$PHP_FOLDER/bin:$PATH" |
| 517 | |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 518 | # Install Composer |
| 519 | wget https://getcomposer.org/download/2.0.13/composer.phar --progress=dot:mega -O /usr/local/bin/composer |
| 520 | chmod a+x /usr/local/bin/composer |
| 521 | |
Paul Yang | 8521957 | 2020-01-30 12:45:47 -0800 | [diff] [blame] | 522 | # Install valgrind |
| 523 | echo "#! /bin/bash" > valgrind |
| 524 | chmod ug+x valgrind |
| 525 | sudo mv valgrind /usr/local/bin/valgrind |
| 526 | |
| 527 | # Test |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 528 | test_php_c |
Paul Yang | 8521957 | 2020-01-30 12:45:47 -0800 | [diff] [blame] | 529 | } |
| 530 | |
Paul Yang | 25abd7b | 2017-05-05 11:14:11 -0700 | [diff] [blame] | 531 | build_php_compatibility() { |
| 532 | internal_build_cpp |
Jie Luo | d1eeb85 | 2019-07-31 17:49:26 -0700 | [diff] [blame] | 533 | php/tests/compatibility_test.sh $LAST_RELEASED |
Paul Yang | 25abd7b | 2017-05-05 11:14:11 -0700 | [diff] [blame] | 534 | } |
| 535 | |
Paul Yang | fe1790c | 2019-12-12 13:59:51 -0800 | [diff] [blame] | 536 | build_php_multirequest() { |
| 537 | use_php 7.4 |
Joshua Haberman | 2cc68ef | 2020-05-28 19:24:08 -0700 | [diff] [blame] | 538 | php/tests/multirequest.sh |
Paul Yang | fe1790c | 2019-12-12 13:59:51 -0800 | [diff] [blame] | 539 | } |
| 540 | |
Paul Yang | d4ca929 | 2020-08-11 19:30:46 -0700 | [diff] [blame] | 541 | build_php8.0_all() { |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 542 | build_php 8.0 |
| 543 | build_php_c 8.0 |
Paul Yang | d4ca929 | 2020-08-11 19:30:46 -0700 | [diff] [blame] | 544 | } |
| 545 | |
Paul Yang | 25abd7b | 2017-05-05 11:14:11 -0700 | [diff] [blame] | 546 | build_php_all_32() { |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 547 | build_php 7.0 |
| 548 | build_php 7.1 |
| 549 | build_php 7.4 |
| 550 | build_php_c 7.0 |
| 551 | build_php_c 7.1 |
| 552 | build_php_c 7.4 |
| 553 | build_php_c 7.1-zts |
| 554 | build_php_c 7.2-zts |
| 555 | build_php_c 7.5-zts |
Paul Yang | 51c5ff8 | 2016-10-25 17:27:05 -0700 | [diff] [blame] | 556 | } |
| 557 | |
Paul Yang | 25abd7b | 2017-05-05 11:14:11 -0700 | [diff] [blame] | 558 | build_php_all() { |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 559 | build_php_all_32 |
Paul Yang | fe1790c | 2019-12-12 13:59:51 -0800 | [diff] [blame] | 560 | build_php_multirequest |
Paul Yang | 25abd7b | 2017-05-05 11:14:11 -0700 | [diff] [blame] | 561 | build_php_compatibility |
| 562 | } |
| 563 | |
Yilun Chong | 6adc3d7 | 2018-12-18 16:20:23 -0800 | [diff] [blame] | 564 | build_benchmark() { |
Yilun Chong | 152c830 | 2018-12-20 17:15:51 -0800 | [diff] [blame] | 565 | use_php 7.2 |
Yilun Chong | 6adc3d7 | 2018-12-18 16:20:23 -0800 | [diff] [blame] | 566 | cd kokoro/linux/benchmark && ./run.sh |
| 567 | } |
| 568 | |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 569 | # -------- main -------- |
| 570 | |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 571 | if [ "$#" -ne 1 ]; then |
| 572 | echo " |
| 573 | Usage: $0 { cpp | |
Feng Xiao | a4f68b1 | 2016-07-19 17:20:31 -0700 | [diff] [blame] | 574 | cpp_distcheck | |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 575 | csharp | |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 576 | java_jdk7 | |
| 577 | java_oracle7 | |
Tomo Suzuki | 7051725 | 2019-06-26 15:28:49 -0400 | [diff] [blame] | 578 | java_linkage_monitor | |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 579 | objectivec_ios | |
Thomas Van Lenten | 368a2f4 | 2016-05-24 11:27:33 -0400 | [diff] [blame] | 580 | objectivec_ios_debug | |
| 581 | objectivec_ios_release | |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 582 | objectivec_osx | |
Thomas Van Lenten | bd00671 | 2019-01-07 16:42:22 -0500 | [diff] [blame] | 583 | objectivec_tvos | |
| 584 | objectivec_tvos_debug | |
| 585 | objectivec_tvos_release | |
Sergio Campamá | f0c1492 | 2016-06-14 11:26:01 -0700 | [diff] [blame] | 586 | objectivec_cocoapods_integration | |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 587 | python | |
| 588 | python_cpp | |
Jie Luo | ea51149 | 2017-01-23 15:11:00 -0800 | [diff] [blame] | 589 | python_compatibility | |
Paul Yang | 39df66e | 2018-10-12 12:36:33 -0700 | [diff] [blame] | 590 | ruby23 | |
| 591 | ruby24 | |
| 592 | ruby25 | |
Paul Yang | de9e1a0 | 2019-01-03 14:25:50 -0800 | [diff] [blame] | 593 | ruby26 | |
Masaki Hara | f494cb2 | 2020-04-25 01:50:27 +0900 | [diff] [blame] | 594 | ruby27 | |
Joshua Haberman | 9abf6e2 | 2021-01-13 12:16:25 -0800 | [diff] [blame] | 595 | ruby30 | |
Feng Xiao | 20fbb35 | 2016-07-21 18:04:56 -0700 | [diff] [blame] | 596 | jruby | |
Bo Yang | fd332d1 | 2016-09-30 00:07:47 +0000 | [diff] [blame] | 597 | ruby_all | |
Yilun Chong | 6adc3d7 | 2018-12-18 16:20:23 -0800 | [diff] [blame] | 598 | php_all | |
Joshua Haberman | 8b87075 | 2021-05-04 10:19:22 -0700 | [diff] [blame] | 599 | php_all_32 | |
| 600 | php7.0_mac | |
| 601 | php7.3_mac | |
Hao Nguyen | f85c823 | 2019-03-07 14:34:28 -0800 | [diff] [blame] | 602 | dist_install | |
Yilun Chong | 152c830 | 2018-12-20 17:15:51 -0800 | [diff] [blame] | 603 | benchmark) |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 604 | " |
| 605 | exit 1 |
| 606 | fi |
| 607 | |
| 608 | set -e # exit immediately on error |
| 609 | set -x # display all commands |
Feng Xiao | 9de4e64 | 2018-07-13 16:55:32 -0700 | [diff] [blame] | 610 | cd $(dirname $0) |
Josh Haberman | 738393b | 2016-02-18 20:10:23 -0800 | [diff] [blame] | 611 | eval "build_$1" |