Skip to content

Commit

Permalink
Disable checks for PHP < 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mrook committed Oct 5, 2016
1 parent 4684fea commit f9d52af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 39 deletions.
37 changes: 3 additions & 34 deletions .travis.sh
Expand Up @@ -14,40 +14,9 @@
echo "... OK"
fi

if [[ $TRAVIS_PHP_VERSION < 5.3 ]]; then
pear upgrade pecl.php.net/Phar ||
pear install pecl.php.net/Phar

echo -e "\nInstalling / upgrading phpcs ... "
which phpcs >/dev/null &&
pear upgrade pear.php.net/PHP_CodeSniffer ||
pear install pear.php.net/PHP_CodeSniffer
phpenv rehash
# re-test for phpcs:
phpcs --version 2>&1 >/dev/null &&
echo "... OK"

echo -e "\nInstalling / upgrading phpdepend ... "
which pdepend >/dev/null &&
pear upgrade pear.pdepend.org/PHP_Depend-1.1.0 ||
pear install pear.pdepend.org/PHP_Depend-1.1.0

echo -e "\nInstalling PEAR packages ... "
pear install pear/XML_Serializer-beta
pear install --alldeps PEAR_PackageFileManager
pear install --alldeps PEAR_PackageFileManager2
pear install Net_Growl
pear install HTTP_Request2
pear install VersionControl_SVN-alpha
pear install VersionControl_Git-alpha

mkdir vendor
touch vendor/autoload.php
else
echo -e "\nInstalling composer packages ... "
composer selfupdate --quiet
composer install -o --no-progress --prefer-dist
fi
echo -e "\nInstalling composer packages ... "
composer selfupdate --quiet
composer install -o --no-progress --prefer-dist

if [[ $TRAVIS_PHP_VERSION != 'hhvm-nightly' && $TRAVIS_PHP_VERSION != 'hhvm' ]]; then
phpenv config-add .travis.php.ini
Expand Down
5 changes: 0 additions & 5 deletions .travis.yml
Expand Up @@ -7,17 +7,12 @@ addons:

language: php
php:
- 5.2
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

matrix:
allow_failures:
- php: 5.2
fast_finish: true

cache:
Expand Down

0 comments on commit f9d52af

Please sign in to comment.