Skip to content
Extraits de code Groupes Projets
Valider da13fc45 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Automate building of xhprof through composer install/update.

parent 2a3fa037
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -48,5 +48,13 @@ ...@@ -48,5 +48,13 @@
"type": "vcs", "type": "vcs",
"url": "https://github.com/phacility/xhprof" "url": "https://github.com/phacility/xhprof"
} }
] ],
"scripts": {
"post-update-cmd": [
"misc/composer/build-xhprof.sh"
],
"post-install-cmd": [
"misc/composer/build-xhprof.sh"
]
}
} }
#!/bin/bash
cd vendor/facebook/xhprof/extension
echo "Building xhprof..."
git fetch origin pull/33/head:33_pull_request
git merge 33_pull_request
if ! phpize; then
echo "Fatal error: phpize failed!"
exit 1
fi
if ! ./configure; then
echo "Fatal error: configure script failed!"
exit 2
fi
if ! make; then
echo "Fatal error: could not build extension (make failed)!"
exit 3
fi
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter