Skip to content

Commit

Permalink
Use separate configuration for Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 5, 2013
1 parent 936b22b commit 8f4c42e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -12,9 +12,8 @@ before_script:
- composer install --prefer-source
- git clone --branch=master --depth=100 --quiet git://github.com/pear/pear-core.git vendor/pear-core
- git clone --branch=trunk --depth=100 --quiet git://github.com/pear/Console_Getopt.git vendor/console-getopt
- touch dummy.php

script: php -d include_path=".:vendor/pear-core:vendor/console-getopt/" ./composer/bin/phpunit --coverage-text --colors --bootstrap dummy.php
script: php -d include_path=".:vendor/pear-core:vendor/console-getopt/" ./composer/bin/phpunit --configuration ./build/travis-ci.xml

notifications:
email: false
Expand Down
36 changes: 36 additions & 0 deletions build/travis-ci.xml
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://phpunit.de/phpunit.xsd"
backupGlobals="false"
colors="true"
verbose="true">
<testsuites>
<testsuite name="PHPUnit">
<directory suffix="Test.php">../Tests/Framework</directory>
<directory suffix=".phpt">../Tests/Framework/MockObject</directory>
<directory suffix="Test.php">../Tests/Extensions</directory>
<directory suffix=".phpt">../Tests/Regression</directory>
<directory suffix="Test.php">../Tests/Runner</directory>
<directory suffix=".phpt">../Tests/TextUI</directory>
<directory suffix="Test.php">../Tests/Util</directory>
</testsuite>
</testsuites>

<logging>
<log type="coverage-text" target="php://stdout"/>
</logging>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../PHPUnit</directory>
<exclude>
<file>../PHPUnit/Autoload.php</file>
<file>../PHPUnit/Framework/Assert/Functions.php</file>
</exclude>
</whitelist>
</filter>

<php>
<const name="PHPUNIT_TESTSUITE" value="true"/>
</php>
</phpunit>

0 comments on commit 8f4c42e

Please sign in to comment.