Skip to content

Commit

Permalink
ignore tests in php 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannis committed Apr 20, 2016
1 parent c2a6fef commit dd4accd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
38 changes: 22 additions & 16 deletions .atoum.travis.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,29 @@
/* @var \mageekguy\atoum\configurator $script */
$script->addDefaultReport();

if ($token = getenv('COVERALLS_REPO_TOKEN')) {
$coverallsReport = new Coveralls(__DIR__, $token);
if (getenv('TRAVIS_PHP_VERSION') === '7.0') {
$script
->php('php -n -ddate.timezone=Europe/Madrid')
->noCodeCoverage()
;
} else {
if ($token = getenv('COVERALLS_REPO_TOKEN')) {
$coverallsReport = new Coveralls(__DIR__, $token);

$defaultFinder = $coverallsReport->getBranchFinder();
$coverallsReport
->setBranchFinder(function () use ($defaultFinder) {
if (($branch = getenv('TRAVIS_BRANCH')) === false) {
$branch = $defaultFinder();
}
$defaultFinder = $coverallsReport->getBranchFinder();
$coverallsReport
->setBranchFinder(function () use ($defaultFinder) {
if (($branch = getenv('TRAVIS_BRANCH')) === false) {
$branch = $defaultFinder();
}

return $branch;
})
->setServiceName(getenv('TRAVIS') ? 'travis-ci' : null)
->setServiceJobId(getenv('TRAVIS_JOB_ID') ?: null)
->addDefaultWriter()
;
return $branch;
})
->setServiceName(getenv('TRAVIS') ? 'travis-ci' : null)
->setServiceJobId(getenv('TRAVIS_JOB_ID') ?: null)
->addDefaultWriter();

/* @var \mageekguy\atoum\runner $runner */
$runner->addReport($coverallsReport);
/* @var \mageekguy\atoum\runner $runner */
$runner->addReport($coverallsReport);
}
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sudo: false
php:
- 5.5
- 5.6
- 7.0.1
- 7.0

install:
- curl -s http://getcomposer.org/installer | php
Expand Down

0 comments on commit dd4accd

Please sign in to comment.