Skip to content

Commit

Permalink
Merge pull request #445 from TomasVotruba/patch-2
Browse files Browse the repository at this point in the history
travis: use directly PHP 7.0
  • Loading branch information
padraic committed Feb 27, 2015
2 parents ba64edd + 526112f commit bbcf6b3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 45 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -5,7 +5,7 @@ php:
- 5.4
- 5.5
- 5.6
- 5.3.3 #This will actually use PHP7
- 7.0
- hhvm
- hhvm-nightly

Expand All @@ -21,7 +21,7 @@ cache:
- $HOME/.composer/cache

before_install:
- ./travis/before_install.sh
- composer self-update

install:
- travis_retry ./travis/install.sh
Expand Down
4 changes: 2 additions & 2 deletions travis/after_script.sh
@@ -1,6 +1,6 @@
#!/bin/bash
if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then
if [[ $TRAVIS_PHP_VERSION == "5.6" ]]; then
vendor/bin/coveralls -v
wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml
fi
fi
20 changes: 0 additions & 20 deletions travis/before_install.sh

This file was deleted.

14 changes: 5 additions & 9 deletions travis/before_script.sh
@@ -1,15 +1,11 @@
#!/bin/bash
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" \
&& "$TRAVIS_PHP_VERSION" != "hhvm-nightly" \
&& "$TRAVIS_PHP_VERSION" != "5.3.3" ]]; then
if [[ $TRAVIS_PHP_VERSION != "hhvm" \
&& $TRAVIS_PHP_VERSION != "hhvm-nightly" \
&& $TRAVIS_PHP_VERSION != "7.0" ]]; then
phpenv config-add ./travis/extra.ini
phpenv rehash
fi

if [[ "$TRAVIS_PHP_VERSION" == "5.3.3" ]]; then
php --version
fi

if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then
if [[ $TRAVIS_PHP_VERSION == "5.6" ]]; then
sed '/MockeryPHPUnitIntegration/d' -i ./phpunit.xml.dist
fi
fi
9 changes: 2 additions & 7 deletions travis/install.sh
@@ -1,11 +1,6 @@
#!/bin/bash
if [[ "$TRAVIS_PHP_VERSION" == "5.3.3" ]]; then
export PATH=$PWD/phar:$PATH
echo PATH is $PATH
fi

composer install -n

if [[ "$TRAVIS_PHP_VERSION" == "5.6" ]]; then
if [[ $TRAVIS_PHP_VERSION == "5.6" ]]; then
composer require --dev satooshi/php-coveralls:~0.7@dev
fi
fi
10 changes: 5 additions & 5 deletions travis/script.sh
@@ -1,8 +1,8 @@
#!/bin/bash
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
if [[ $TRAVIS_PHP_VERSION != "hhvm" \
&& $TRAVIS_PHP_VERSION != "hhvm-nightly" \
&& $TRAVIS_PHP_VERSION != "7.0" ]]; then
vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml
fi

if [[ "$TRAVIS_PHP_VERSION" == "hhvm" || "$TRAVIS_PHP_VERSION" == "hhvm-nightly" ]]; then
else
vendor/bin/phpunit
fi
fi

0 comments on commit bbcf6b3

Please sign in to comment.