test(phpunit): Disable Vimeo tests on CI
This commit is contained in:
parent
9949a0d32b
commit
71200c80bc
2 changed files with 34 additions and 7 deletions
|
@ -117,6 +117,9 @@ class VideoDownloadTest extends TestCase
|
|||
*/
|
||||
public function testGetURLWithPassword()
|
||||
{
|
||||
if (getenv('CI')) {
|
||||
$this->markTestSkipped('Travis is blacklisted by Vimeo.');
|
||||
}
|
||||
$videoURL = $this->download->getURL('http://vimeo.com/68375962', null, 'youtube-dl');
|
||||
$this->assertContains('vimeocdn.com', $videoURL[0]);
|
||||
}
|
||||
|
@ -129,6 +132,9 @@ class VideoDownloadTest extends TestCase
|
|||
*/
|
||||
public function testGetURLWithMissingPassword()
|
||||
{
|
||||
if (getenv('CI')) {
|
||||
$this->markTestSkipped('Travis is blacklisted by Vimeo.');
|
||||
}
|
||||
$this->download->getURL('http://vimeo.com/68375962');
|
||||
}
|
||||
|
||||
|
@ -140,6 +146,9 @@ class VideoDownloadTest extends TestCase
|
|||
*/
|
||||
public function testGetURLWithWrongPassword()
|
||||
{
|
||||
if (getenv('CI')) {
|
||||
$this->markTestSkipped('Travis is blacklisted by Vimeo.');
|
||||
}
|
||||
$this->download->getURL('http://vimeo.com/68375962', null, 'foo');
|
||||
}
|
||||
|
||||
|
@ -164,7 +173,7 @@ class VideoDownloadTest extends TestCase
|
|||
*/
|
||||
public function urlProvider()
|
||||
{
|
||||
return [
|
||||
$videos = [
|
||||
[
|
||||
'https://www.youtube.com/watch?v=M7IpKCZ47pU', 'best[protocol^=http]',
|
||||
'It_s_Not_Me_It_s_You_-_Hearts_Under_Fire-M7IpKCZ47pU',
|
||||
|
@ -178,12 +187,6 @@ class VideoDownloadTest extends TestCase
|
|||
'mp4',
|
||||
'googlevideo.com',
|
||||
],
|
||||
[
|
||||
'https://vimeo.com/24195442', 'best[protocol^=http]',
|
||||
'Carving_the_Mountains-24195442',
|
||||
'mp4',
|
||||
'vimeocdn.com',
|
||||
],
|
||||
[
|
||||
'http://www.bbc.co.uk/programmes/b039g8p7', 'bestaudio/best',
|
||||
'Kaleidoscope_Leonard_Cohen-b039d07m',
|
||||
|
@ -203,6 +206,18 @@ class VideoDownloadTest extends TestCase
|
|||
'openload.co',
|
||||
],
|
||||
];
|
||||
|
||||
if (!getenv('CI')) {
|
||||
// Travis is blacklisted by Vimeo.
|
||||
$videos[] = [
|
||||
'https://vimeo.com/24195442', 'best[protocol^=http]',
|
||||
'Carving_the_Mountains-24195442',
|
||||
'mp4',
|
||||
'vimeocdn.com',
|
||||
];
|
||||
}
|
||||
|
||||
return $videos;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue