<?php

use mageekguy\atoum\reports;

$runner
	->addTestsFromDirectory(__DIR__ . '/tests/units/classes')
	->disallowUndefinedMethodInInterface()
;

$travis = getenv('TRAVIS');

if ($travis)
{
	$script->addDefaultReport();

	$coverallsToken = getenv('COVERALLS_REPO_TOKEN');

	if ($coverallsToken)
	{
		$coverallsReport = new reports\asynchronous\coveralls(__DIR__ . '/classes', $coverallsToken);

		$defaultFinder = $coverallsReport->getBranchFinder();

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

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

		$runner->addReport($coverallsReport);
	}
}

<?php

use mageekguy\atoum\reports;

$script->addDefaultReport();

$runner
	->addTestsFromDirectory(__DIR__ . '/tests/units/classes')
	->disallowUndefinedMethodInInterface()
;

$coverallsToken = getenv('COVERALLS_REPO_TOKEN');

if ($coverallsToken)
{
	$coverallsReport = new reports\asynchronous\coveralls(__DIR__ . '/classes', $coverallsToken);

	$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()
	;

	$runner->addReport($coverallsReport);
}

--- 
+++ 
@@ -1,36 +1,41 @@
 <?php
 
 use mageekguy\atoum\reports;
-
-$script->addDefaultReport();
 
 $runner
 	->addTestsFromDirectory(__DIR__ . '/tests/units/classes')
 	->disallowUndefinedMethodInInterface()
 ;
 
-$coverallsToken = getenv('COVERALLS_REPO_TOKEN');
+$travis = getenv('TRAVIS');
 
-if ($coverallsToken)
+if ($travis)
 {
-	$coverallsReport = new reports\asynchronous\coveralls(__DIR__ . '/classes', $coverallsToken);
+	$script->addDefaultReport();
 
-	$defaultFinder = $coverallsReport->getBranchFinder();
+	$coverallsToken = getenv('COVERALLS_REPO_TOKEN');
 
-	$coverallsReport
-		->setBranchFinder(function() use ($defaultFinder) {
-				if (($branch = getenv('TRAVIS_BRANCH')) === false)
-				{
-					$branch = $defaultFinder();
+	if ($coverallsToken)
+	{
+		$coverallsReport = new reports\asynchronous\coveralls(__DIR__ . '/classes', $coverallsToken);
+
+		$defaultFinder = $coverallsReport->getBranchFinder();
+
+		$coverallsReport
+			->setBranchFinder(function() use ($defaultFinder) {
+					if (($branch = getenv('TRAVIS_BRANCH')) === false)
+					{
+						$branch = $defaultFinder();
+					}
+
+					return $branch;
 				}
+			)
+			->setServiceName('travis-ci')
+			->setServiceJobId(getenv('TRAVIS_JOB_ID'))
+			->addDefaultWriter()
+		;
 
-				return $branch;
-			}
-		)
-		->setServiceName(getenv('TRAVIS') ? 'travis-ci' : null)
-		->setServiceJobId(getenv('TRAVIS_JOB_ID') ?: null)
-		->addDefaultWriter()
-	;
-
-	$runner->addReport($coverallsReport);
+		$runner->addReport($coverallsReport);
+	}
 }
Add default report only for travis-ci.
