Add support for blackfire client, agent and player

This commit is contained in:
Shivam Mathur
2020-02-28 13:19:12 +05:30
parent 84e88e382f
commit acee5b203f
10 changed files with 177 additions and 174 deletions

View File

@ -123,7 +123,7 @@ add_tool() {
}
# Function to add a tool using composer
add_composer_tool() {
add_composertool() {
tool=$1
release=$2
prefix=$3
@ -134,6 +134,16 @@ add_composer_tool() {
) || add_log "$cross" "$tool" "Could not setup $tool"
}
add_blackfire() {
sudo mkdir -p usr/local/var/run
brew tap blackfireio/homebrew-blackfire >/dev/null 2>&1
brew install blackfire-agent >/dev/null 2>&1
sudo blackfire-agent --register --server-id="$BLACKFIRE_SERVER_ID" --server-token="$BLACKFIRE_SERVER_TOKEN" >/dev/null 2>&1
brew services start blackfire-agent >/dev/null 2>&1
sudo blackfire --config --client-id="$BLACKFIRE_CLIENT_ID" --client-token="$BLACKFIRE_CLIENT_TOKEN" >/dev/null 2>&1
}
# Function to configure PECL
configure_pecl() {
for tool in pear pecl; do