Lines Matching +full:build +full:- +full:kotlin +full:- +full:linux
3 # Build and runs tests for the protobuf project. We use this script to run
7 # For when some other test needs the C++ main build, including protoc and
12 if [ -f src/protoc ]; then
18 git submodule update --init --recursive
21 ./configure CXXFLAGS="-fPIC -std=c++11" # -fPIC is needed for python cpp test.
23 make -j$(nproc)
28 make check -j$(nproc) || (cat src/test-suite.log; false)
34 ./configure LIBS=-ltcmalloc && make clean && make \
35 PTHREAD_CFLAGS='-pthread -DGOOGLE_PROTOBUF_HEAP_CHECK_DRACONIAN' \
38 PPROF_PATH=/usr/bin/google-pprof HEAPCHECK=strict ./protobuf-test
42 grep -q -- "-Og" src/Makefile.am &&
43 echo "The -Og flag is incompatible with Clang versions older than 4.0." &&
47 git submodule update --init --recursive
53 …git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|php\|cmake\|examples\|src/goog…
54 grep -v ".gitignore" | grep -v "java/lite/proguard.pgcfg" |\
55 …grep -v "python/compatibility_tests" | grep -v "python/docs" | grep -v "python/.repo-metadata.json…
56 grep -v "python/protobuf_distutils" | grep -v "csharp/compatibility_tests" > dist.lst
59 tar -xf $DIST
64 [ -f "$FILE" ] || {
70 if [ ! -z "$FILES_MISSING" ]; then
75 # Do the regular dist-check for C++.
76 make distcheck -j$(nproc)
81 # This is necessary because the googletest build system involves a Python
83 # versions have fixed this, but they have also removed the autotools build
85 # googletest build working when the default python binary is Python 3.
88 ln -s /usr/bin/python2 ./python
93 git submodule update --init --recursive
100 tar -xf $DIST
102 ./configure && make check -j4 && make install
113 python3 -m venv venv
116 python3 setup.py clean build sdist
117 pip3 install dist/protobuf-*.tar.gz
120 rm -rf python/venv
143 rm -rf dotnettmp
160 # Go build needs `protoc`.
162 # Add protoc to the path so that the examples build finds it.
166 mkdir -p "$GOPATH/src/github.com/protocolbuffers"
167 mkdir -p "$GOPATH/src/github.com/golang"
168 rm -f "$GOPATH/src/github.com/protocolbuffers/protobuf"
169 rm -f "$GOPATH/src/github.com/golang/protobuf"
170 ln -s "`pwd`" "$GOPATH/src/github.com/protocolbuffers/protobuf"
173 go install github.com/golang/protobuf/protoc-gen-go
175 cd examples && PROTO_PATH="-I../src -I." make gotest && cd ..
182 export PATH=/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH
183 export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
186 export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin:$PATH
187 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
190 export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
191 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
194 export PATH=/usr/lib/jvm/java-7-oracle/bin:$PATH
195 export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
200 MVN="$MVN -e --quiet -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$MAVEN_LOCAL_REPOSITORY"
203 java -version
204 $MVN -version
207 # --batch-mode suppresses download progress output that spams the logs.
208 MVN="mvn --batch-mode"
213 # Java build needs `protoc`.
215 cp -r java $dir
217 # Skip tests here - callers will decide what tests they want to run
218 $MVN install -Dmaven.test.skip=true
224 # Skip the Kotlin tests on Oracle 7
226 $MVN test -pl bom,lite,core,util
233 # The conformance tests are hard-coded to work with the $ROOT/java directory.
236 # Java build needs `protoc`.
245 cd ../kotlin && $MVN test && $MVN install
246 cd ../kotlin-lite && $MVN test && $MVN install
262 # https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
268 MVN="mvn -e -B -Dhttps.protocols=TLSv1.2"
271 $MVN install -Dmaven.test.skip=true
274 JAR=linkage-monitor-latest-all-deps.jar
275 curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}"
277 java -jar $JAR com.google.cloud:libraries-bom
281 # Reused the build script that takes care of configuring and ensuring things
285 --core-only --skip-xcode-osx --skip-xcode-tvos --skip-objc-conformance "$@"
289 build_objectivec_ios --skip-xcode-release
293 build_objectivec_ios --skip-xcode-debug
297 # Reused the build script that takes care of configuring and ensuring things
300 --core-only --skip-xcode-ios --skip-xcode-tvos
304 # Reused the build script that takes care of configuring and ensuring things
308 --core-only --skip-xcode-ios --skip-xcode-osx --skip-objc-conformance "$@"
312 build_objectivec_tvos --skip-xcode-release
316 build_objectivec_tvos --skip-xcode-debug
326 tox --skip-missing-interpreters
334 tox -e $envlist
339 build_python_version py37-python
343 build_python_version py38-python
347 build_python_version py39-python
351 build_python_version py310-python
356 export LD_LIBRARY_PATH=../src/.libs # for Linux
359 tox --skip-missing-interpreters
365 export LD_LIBRARY_PATH=../src/.libs # for Linux
369 tox -e $envlist
374 build_python_cpp_version py37-cpp
378 build_python_cpp_version py38-cpp
382 build_python_cpp_version py39-cpp
386 build_python_cpp_version py310-cpp
392 cd ruby && bash travis-test.sh ruby-2.3.8 && cd ..
396 cd ruby && bash travis-test.sh ruby-2.4 && cd ..
400 cd ruby && bash travis-test.sh ruby-2.5.1 && cd ..
404 cd ruby && bash travis-test.sh ruby-2.6.0 && cd ..
408 cd ruby && bash travis-test.sh ruby-2.7.0 && cd ..
412 cd ruby && bash travis-test.sh ruby-3.0.2 && cd ..
416 cd ruby && bash travis-test.sh ruby-3.1.0 && cd ..
422 cd ruby && bash travis-test.sh jruby-9.2.20.1 && cd ..
428 cd ruby && bash travis-test.sh jruby-9.3.3.0 && cd ..
433 NODE_VERSION=node-v12.16.3-darwin-x64
436 curl -OL https://nodejs.org/dist/v12.16.3/$NODE_TGZ
446 export PATH=/usr/local/php-${VERSION}/bin:$PATH
453 rm -rf vendor
454 php -v
455 php -m
464 rm -rf vendor
465 php -v
466 php -m
481 curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0
482 PHP_FOLDER=`find /usr/local -type d -name "php5-7.0*"` # The folder name may change upon time
483 test ! -z "$PHP_FOLDER"
487 …wget https://getcomposer.org/download/2.0.13/composer.phar --progress=dot:mega -O /usr/local/bin/c…
503 # https://github.com/liip/php-osx/issues/276
504 curl -s https://php-osx.liip.ch/install.sh | bash -s 7.3
505 PHP_FOLDER=`find /usr/local -type d -name "php5-7.3*"` # The folder name may change upon time
506 test ! -z "$PHP_FOLDER"
510 …wget https://getcomposer.org/download/2.0.13/composer.phar --progress=dot:mega -O /usr/local/bin/c…
546 build_php_c 7.1-zts
547 build_php_c 7.2-zts
548 build_php_c 7.5-zts
559 cd kokoro/linux/benchmark && ./run.sh
562 # -------- main --------
564 if [ "$#" -ne 1 ]; then
603 set -e # exit immediately on error
604 set -x # display all commands