Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add configuration for Travis CI

  • Loading branch information...
commit bc678f2a832828ad8bf76d4dda0754fe1b6f1876 1 parent 2045be9
Sebastian Bergmann authored
Showing with 50 additions and 0 deletions.
  1. +22 −0 .travis.yml
  2. +28 −0 build/travis-ci.xml
22 .travis.yml
View
@@ -0,0 +1,22 @@
+language: php
+
+php:
+ - 5.3
+ - 5.4
+
+before_script:
+ - mkdir -p vendor
+ - git clone --branch=3.7 --depth=100 --quiet git://github.com/sebastianbergmann/phpunit.git vendor/phpunit
+ - git clone --branch=1.2 --depth=100 --quiet git://github.com/sebastianbergmann/php-code-coverage.git vendor/php-code-coverage
+ - git clone --branch=master --depth=100 --quiet git://github.com/sebastianbergmann/php-text-template.git vendor/php-text-template
+ - git clone --branch=master --depth=100 --quiet git://github.com/sebastianbergmann/php-token-stream.git vendor/php-token-stream
+ - git clone --branch=master --depth=100 --quiet git://github.com/sebastianbergmann/php-file-iterator.git vendor/php-file-iterator
+ - git clone --branch=master --depth=100 --quiet git://github.com/sebastianbergmann/php-timer.git vendor/php-timer
+ - 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
+
+script: php -d include_path=vendor/php-text-template:vendor/php-token-stream:vendor/php-file-iterator:vendor/phpunit:vendor/php-code-coverage:vendor/php-timer:vendor/php-invoker:vendor/pear-core:vendor/console-getopt:vendor:. ./vendor/phpunit/phpunit.php --configuration ./build/travis-ci.xml
+
+notifications:
+ email: false
+ irc: "irc.freenode.org#phpunit"
28 build/travis-ci.xml
View
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit backupGlobals="false"
+ colors="true">
+ <php>
+ <const name="PHPUNIT_TESTSUITE" value="true"/>
+ </php>
+
+ <testsuites>
+ <testsuite name="PHPUnit Mock Objects">
+ <directory suffix="Test.php">../Tests</directory>
+ <directory suffix=".phpt">../Tests</directory>
+ </testsuite>
+ </testsuites>
+
+ <logging>
+ <log type="coverage-text" target="php://stdout"/>
+ </logging>
+
+ <filter>
+ <whitelist addUncoveredFilesFromWhitelist="true">
+ <directory suffix=".php">../PHPUnit</directory>
+ <exclude>
+ <file>../PHPUnit/Framework/MockObject/Autoload.php</file>
+ </exclude>
+ </whitelist>
+ </filter>
+</phpunit>
Please sign in to comment.
Something went wrong with that request. Please try again.