Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 80 lines (65 sloc) 2.216 kb
#!/bin/bash
#-----------------------------------------------------------
#
# Purpose: Run phing in a travis environment
#
# Target system: travis-ci
#-----------------------------------------------------------
installPearTask ()
{
echo -e "\nAuto-discover pear channels and upgrade ..."
pear config-set auto_discover 1
pear -qq channel-update pear.php.net
pear -qq upgrade
echo "... OK"
echo -e "\nInstalling / upgrading phing ... "
which phing >/dev/null &&
pear upgrade pear.phing.info/phing ||
pear install --alldeps pear.phing.info/phing
# update paths
phpenv rehash
# re-test for phing:
phing -v 2>&1 >/dev/null &&
echo "... OK" ||
return 1
echo -e "\nInstalling / upgrading phpcpd ... "
which phpcpd >/dev/null &&
sudo pear upgrade pear.phpunit.de/phpcpd ||
sudo pear install pear.phpunit.de/phpcpd
phpenv rehash
# re-test for phpcpd:
phpcpd -v 2>&1 >/dev/null &&
echo "... OK" ||
return 1
echo -e "\nInstalling / upgrading phpcs ... "
which phpcs >/dev/null &&
sudo pear upgrade pear.php.net/PHP_CodeSniffer ||
sudo pear install pear.php.net/PHP_CodeSniffer
phpenv rehash
# re-test for phpcs:
phpcs --version 2>&1 >/dev/null &&
echo "... OK" ||
return 1
sudo apt-get install python-docutils
pear install VersionControl_Git-alpha
pear install pear/XML_Serializer-beta
pear install --alldeps PEAR_PackageFileManager
pear install --alldeps PEAR_PackageFileManager2
pear install Net_Growl
# update paths
phpenv rehash
}
#-----------------------------------------------------------
installPearTask &&
echo -e "\nSUCCESS - PHP ENVIRONMENT READY." ||
( echo "=== FAILED."; exit 1 )
if [ '$TRAVIS_PHP_VERSION' != '5.2' ]; then
composer install
fi
# echo "=== BUILDING PHING ==="
# cd build
# phing -Dversion=2.0.0b1
echo "=== TESTING PHING ==="
cd test
../bin/phing
#------------------------------------------------------- eof
Jump to Line
Something went wrong with that request. Please try again.