xref: /third_party/protobuf/kokoro/linux/benchmark/build.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/protobuf/kokoro/linux/benchmark/
1ffe3c632Sopenharmony_ci#!/bin/bash
2ffe3c632Sopenharmony_ci
3ffe3c632Sopenharmony_cicd $(dirname $0)/../../..
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_ci# prepare php environments
6ffe3c632Sopenharmony_cisudo apt-get update && sudo apt-get install -y --force-yes php5
7ffe3c632Sopenharmony_cisudo ln -sf /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
8ffe3c632Sopenharmony_cimkdir php_temp
9ffe3c632Sopenharmony_cicd php_temp
10ffe3c632Sopenharmony_cicurl -sS https://getcomposer.org/installer | php
11ffe3c632Sopenharmony_cisudo mv composer.phar /usr/local/bin/composer
12ffe3c632Sopenharmony_cigit clone https://github.com/php/php-src
13ffe3c632Sopenharmony_cicd php-src && git checkout PHP-7.2.13 && ./buildconf --force
14ffe3c632Sopenharmony_ci./configure \
15ffe3c632Sopenharmony_ci	--enable-bcmatch \
16ffe3c632Sopenharmony_ci	--with-gmp --with-openssl \
17ffe3c632Sopenharmony_ci	--with-zlib  \
18ffe3c632Sopenharmony_ci	--prefix=/usr/local/php-7.2 && \
19ffe3c632Sopenharmony_cimake -j8 && sudo make install && make clean
20ffe3c632Sopenharmony_ciwget -O phpunit https://phar.phpunit.de/phpunit-7.phar && \
21ffe3c632Sopenharmony_ci	chmod +x phpunit && \
22ffe3c632Sopenharmony_ci	sudo cp phpunit /usr/local/php-7.2/bin
23ffe3c632Sopenharmony_cisudo apt-get install -y --force-yes valgrind
24ffe3c632Sopenharmony_cicd ../..
25ffe3c632Sopenharmony_ci
26ffe3c632Sopenharmony_ci./tests.sh benchmark
27

Indexes created Thu Nov 07 10:32:03 CST 2024