Skip to content

Commit

Permalink
Testing improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 26, 2014
1 parent ba71fba commit d8acca3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ php:
- 5.6
- hhvm

matrix:
allow_failures:
- php: hhvm

before_script:
- composer install --dev --prefer-source
- travis_retry composer self-update
- travis_retry composer install --no-interaction --prefer-source --dev

script:
- phpunit --coverage-text
- vendor/bin/phpunit --verbose --coverage-text
6 changes: 6 additions & 0 deletions test/Github/Tests/Api/Repository/AssetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ public function shouldGetSingleReleaseAsset()
*/
public function shouldCreateReleaseAsset()
{
if (!defined('OPENSSL_TLSEXT_SERVER_NAME') || !OPENSSL_TLSEXT_SERVER_NAME) {
return $this->markTestSkipped(
'Asset upload support requires Server Name Indication. This is not supported be your PHP version.'
);
}

$name = 'asset.gzip';
$body = 'assetCreatedData';
$contentType = 'application/gzip';
Expand Down

0 comments on commit d8acca3

Please sign in to comment.