Exclude test that only fails on Travis CI

This commit is contained in:
Matthew Ross 2017-01-14 10:44:12 -05:00
parent c08c7ae083
commit 13872686b6
3 changed files with 27 additions and 1 deletions

View File

@ -12,7 +12,7 @@ before_script:
- touch tests.db - touch tests.db
- chmod a+w tests.db - chmod a+w tests.db
script: script:
- ./src/api/vendor/phpunit/phpunit/phpunit -c test/api/phpunit.xml - ./src/api/vendor/phpunit/phpunit/phpunit -c test/api/travis.xml
- gulp test-app && gulp coverage - gulp test-app && gulp coverage
after_success: after_success:
- echo -e "<?php\n print phpversion();" > version.php - echo -e "<?php\n print phpversion();" > version.php

View File

@ -109,6 +109,9 @@ class BoardsTest extends PHPUnit_Framework_TestCase {
$actual->alerts[0]['text']); $actual->alerts[0]['text']);
} }
/**
* @group travis-exclude
*/
public function testAddBoard() { public function testAddBoard() {
$data = $this->getBoardData(); $data = $this->getBoardData();

23
test/api/travis.xml Normal file
View File

@ -0,0 +1,23 @@
<phpunit>
<testsuites>
<testsuite>
<directory>./</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>../../src/api/controllers</directory>
<directory>../../src/api/helpers</directory>
</whitelist>
</filter>
<groups>
<exclude>
<group>travis-exclude</group>
</exclude>
</groups>
<logging>
<log type="coverage-html" target="../../api-coverage/"
lowUpperBound="40" highLowerBound="80" />
</logging>
</phpunit>