Skip to content
Browse files

Use separate configuration for Travis CI

  • Loading branch information...
1 parent 936b22b commit 8f4c42ea7650ebaaeb1259d3d62e88ed02f6832f @sebastianbergmann committed
Showing with 37 additions and 2 deletions.
  1. +1 −2 .travis.yml
  2. +36 −0 build/travis-ci.xml
View
3 .travis.yml
@@ -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
View
36 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.
Something went wrong with that request. Please try again.