|
|
@ -32,6 +32,8 @@ |
|
|
|
# linuxbrew installation of a selected language |
|
|
|
# linuxbrew installation of a selected language |
|
|
|
set -ex |
|
|
|
set -ex |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Our homebrew installation script command, per language |
|
|
|
|
|
|
|
# Can be used in both linux and macos |
|
|
|
if [ "$language" == "core" ]; then |
|
|
|
if [ "$language" == "core" ]; then |
|
|
|
command="curl -fsSL https://goo.gl/getgrpc | bash -" |
|
|
|
command="curl -fsSL https://goo.gl/getgrpc | bash -" |
|
|
|
elif [[ "python nodejs ruby php" =~ "$language" ]]; then |
|
|
|
elif [[ "python nodejs ruby php" =~ "$language" ]]; then |
|
|
@ -66,6 +68,7 @@ if [ "$platform" == "linux" ]; then |
|
|
|
elif [ "$platform" == "macos" ]; then |
|
|
|
elif [ "$platform" == "macos" ]; then |
|
|
|
|
|
|
|
|
|
|
|
if [ "$dist_channel" == "homebrew" ]; then |
|
|
|
if [ "$dist_channel" == "homebrew" ]; then |
|
|
|
|
|
|
|
|
|
|
|
echo "Formulas installed by system-wide homebrew (before)" |
|
|
|
echo "Formulas installed by system-wide homebrew (before)" |
|
|
|
brew list -l |
|
|
|
brew list -l |
|
|
|
|
|
|
|
|
|
|
@ -99,8 +102,6 @@ elif [ "$platform" == "macos" ]; then |
|
|
|
*php*) |
|
|
|
*php*) |
|
|
|
export CFLAGS="-Wno-parentheses-equality" |
|
|
|
export CFLAGS="-Wno-parentheses-equality" |
|
|
|
;; |
|
|
|
;; |
|
|
|
*) |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
# Run our homebrew installation script |
|
|
|
# Run our homebrew installation script |
|
|
@ -108,7 +109,6 @@ elif [ "$platform" == "macos" ]; then |
|
|
|
|
|
|
|
|
|
|
|
# Uninstall / clean up per-language modules/extensions after the test |
|
|
|
# Uninstall / clean up per-language modules/extensions after the test |
|
|
|
case $language in |
|
|
|
case $language in |
|
|
|
*core*) ;; |
|
|
|
|
|
|
|
*python*) |
|
|
|
*python*) |
|
|
|
deactivate |
|
|
|
deactivate |
|
|
|
rm -rf jenkins_python_venv |
|
|
|
rm -rf jenkins_python_venv |
|
|
@ -124,10 +124,6 @@ elif [ "$platform" == "macos" ]; then |
|
|
|
*php*) |
|
|
|
*php*) |
|
|
|
rm grpc.so |
|
|
|
rm grpc.so |
|
|
|
;; |
|
|
|
;; |
|
|
|
*) |
|
|
|
|
|
|
|
echo "Unsupported language $language" |
|
|
|
|
|
|
|
exit 1 |
|
|
|
|
|
|
|
;; |
|
|
|
|
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
# Clean up |
|
|
|
# Clean up |
|
|
|