diff --git a/.travis.yml b/.travis.yml index 03ef66c6..706ec929 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,12 +15,30 @@ matrix: include: - php: 5.3 dist: precise + include: + - os: osx + language: generic + php: 7.0 # just to look right on travis + env: + - PACKAGE: php70 allow_failures: - php: hhvm sudo: false install: + # OSX install inspired by https://github.com/kiler129/TravisCI-OSX-PHP + - | + if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then + brew tap homebrew/homebrew-php + echo "Installing PHP ..." + brew install "${PACKAGE}" + brew install "${PACKAGE}"-xdebug + brew link "${PACKAGE}" + echo "Installing composer ..." + curl -s http://getcomposer.org/installer | php + mv composer.phar /usr/local/bin/composer + fi - COMPOSER_ROOT_VERSION=`git describe --abbrev=0` composer install --no-interaction script: diff --git a/tests/FunctionalSecureServerTest.php b/tests/FunctionalSecureServerTest.php index 063a87e0..b15755cc 100644 --- a/tests/FunctionalSecureServerTest.php +++ b/tests/FunctionalSecureServerTest.php @@ -326,6 +326,10 @@ public function testEmitsErrorForConnectionWithPeerVerification() public function testEmitsErrorIfConnectionIsCancelled() { + if (PHP_OS !== 'Linux') { + $this->markTestSkipped('Linux only (OS is ' . PHP_OS . ')'); + } + $loop = Factory::create(); $server = new TcpServer(0, $loop); diff --git a/tests/FunctionalTcpServerTest.php b/tests/FunctionalTcpServerTest.php index 71a6f9a2..ec7855e9 100644 --- a/tests/FunctionalTcpServerTest.php +++ b/tests/FunctionalTcpServerTest.php @@ -165,6 +165,10 @@ public function testEmitsConnectionWithRemoteNullAddressAfterConnectionIsClosedL public function testEmitsConnectionEvenIfConnectionIsCancelled() { + if (PHP_OS !== 'Linux') { + $this->markTestSkipped('Linux only (OS is ' . PHP_OS . ')'); + } + $loop = Factory::create(); $server = new TcpServer(0, $loop);