Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Last active August 29, 2015 14:04
Show Gist options
  • Save BanzaiMan/9a5d98df47f407d3b77b to your computer and use it in GitHub Desktop.
Save BanzaiMan/9a5d98df47f407d3b77b to your computer and use it in GitHub Desktop.
Travis-specific phpenv install script
VERSION=${1:-5.5.9}
PHP_DIR=$HOME/.phpenv/versions/$VERSION
pushd $HOME/.php-build/bin
test -x $PHP_DIR/bin/php || ./php-build -i development $VERSION $PHP_DIR
popd
phpenv global $VERSION
@BanzaiMan
Copy link
Author

curl https://gist.githubusercontent.com/BanzaiMan/9a5d98df47f407d3b77b/raw/php_install.sh | bash -s 5.4.23 # for example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment