Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Disable Kiss Tracking tests on Travis #1046

Closed
wants to merge 12 commits into from
Closed
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ before_script:
- cp tests/travis/config.php resources/config/local.php
- bin/cm app set-deploy-version

script: bin/phpunit
- sh -c "if [ `php-config --vernum` -ge 50400 -a `php-config --vernum` -lt 50500 ]; then rm tests/library/CM/KissTrackingTest.php; fi" # Causes a Segfault on Travis when the PHP process shuts down (PDO: Broken pipe). Skipping the test doesn't help!

matrix:
allow_failures:
- php: 5.4
- php: 5.5
script: bin/phpunit

notifications:
email: false
3 changes: 3 additions & 0 deletions tests/library/CM/Action/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
class CM_Action_AbstractTest extends CMTest_TestCase {

public function setUp() {
if (getenv('TRAVIS') && (PHP_MAJOR_VERSION === 5) && (PHP_MINOR_VERSION === 4)) {
$this->markTestSkipped('Causes a Segfault on Travis after code coverage (PDO: Broken pipe)');
}
CM_Config::get()->CM_Action_Abstract->verbs['Foo'] = 1;
}

Expand Down
1 change: 0 additions & 1 deletion tests/travis/php-5.5.ini
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
extension = "apcu.so"