Skip to content

Commit

Permalink
Merge 328cd48 into 897c2e7
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Jan 22, 2017
2 parents 897c2e7 + 328cd48 commit 6c176dc
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 42 deletions.
49 changes: 40 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sudo: false

language: php

php:
Expand All @@ -12,28 +14,57 @@ matrix:
- php: hhvm
- php: hhvm-nightly

sudo: false
fast_finish: true

cache:
directories:
- $HOME/.composer/cache
- .composer/cache

before_install:
- composer self-update
- alias composer=composer\ -n && composer self-update

install:
- travis_retry ./travis/install.sh
- composer install

before_script:
- ./travis/before_script.sh
- |
if [[ $TRAVIS_PHP_VERSION != hhvm \
&& $TRAVIS_PHP_VERSION != hhvm-nightly \
&& $TRAVIS_PHP_VERSION != 7.0 ]]; then
cat <<<'
extension=mongo.so
extension=redis.so
' >> ~/.phpenv/versions/"$(phpenv version-name)"/etc/conf.d/travis.ini
fi
- |
if [[ $TRAVIS_PHP_VERSION = 5.6 ]]; then
sed '/MockeryPHPUnitIntegration/d' -i ./phpunit.xml.dist
fi
script:
- ./travis/script.sh
- |
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
else
vendor/bin/phpunit
fi
after_success:
- |
if [[ $TRAVIS_PHP_VERSION = 5.6 ]]; then
composer require satooshi/php-coveralls:~0.7@dev
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
after_script:
- ./travis/after_script.sh
notifications:
email:
- padraic.brady@gmail.com
- dave@atstsolutions.co.uk
irc: "irc.freenode.org#mockery"

irc: irc.freenode.org#mockery
6 changes: 0 additions & 6 deletions travis/after_script.sh

This file was deleted.

11 changes: 0 additions & 11 deletions travis/before_script.sh

This file was deleted.

2 changes: 0 additions & 2 deletions travis/extra.ini

This file was deleted.

6 changes: 0 additions & 6 deletions travis/install.sh

This file was deleted.

8 changes: 0 additions & 8 deletions travis/script.sh

This file was deleted.

0 comments on commit 6c176dc

Please sign in to comment.