diff --git a/.travis.yml b/.travis.yml index 0db93a3b1..a5422a5d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,20 @@ php: - '5.6.25' - '7.0' - '7.1' +env: + - PROTOBUF_C_EXT=true + - PROTOBUF_C_EXT=false +matrix: + exclude: + - php: '5.5.38' + env: PROTOBUF_C_EXT=true + - php: '7.0' + env: PROTOBUF_C_EXT=true sudo: required dist: trusty install: - travis_retry pecl install grpc + - if [[ $PROTOBUF_C_EXT =~ ^true ]]; then travis_retry pecl install protobuf; fi - composer install script: - vendor/bin/phpunit --coverage-clover=coverage.xml diff --git a/tests/ProtobufExtensionTest.php b/tests/ProtobufExtensionTest.php new file mode 100644 index 000000000..c64cd13eb --- /dev/null +++ b/tests/ProtobufExtensionTest.php @@ -0,0 +1,51 @@ +markTestSkipped('Must have the protobuf extension installed to run this test.'); + } + } + + public function testForProtobufExtension() + { + // This test should always pass - we have it here so that we can determine whether the + // protobuf extension is installed, based on whether this test passes or is skipped + $this->assertTrue(true); + } +}