Skip to content
Snippets Groups Projects
Commit 552a823d authored by Pierre Buyle's avatar Pierre Buyle
Browse files

Use fake binaries for testing (easier to get working with Travis CI)

parent 46beade6
Branches 7.x-1.x
Tags 7.x-1.0
No related merge requests found
......@@ -30,10 +30,6 @@ install:
# install drush globally
- composer global require drush/drush:6.*
# install ffmpeg
- sudo add-apt-repository ppa:mc3man/trusty-media -y
- sudo apt-get update -q
- sudo apt-get-install -y ffmpeg
before_script:
# navigate out of module directory to prevent blown stack by recursive module lookup
......
......@@ -97,8 +97,11 @@ class PHPFFMpegTestCase extends DrupalWebTestCase {
}
public function testFactories() {
variable_set('php_ffmpeg_ffmpeg_binary', '/usr/bin/ffmpeg');
variable_set('php_ffmpeg_ffprobe_binary', '/usr/bin/ffprobe');
chmod(drupal_realpath($this->drupalGetTestFiles('binary')[0]->uri), 0777);
chmod(drupal_realpath($this->drupalGetTestFiles('binary')[1]->uri), 0777);
variable_set('php_ffmpeg_ffmpeg_binary', drupal_realpath($this->drupalGetTestFiles('binary')[0]->uri));
variable_set('php_ffmpeg_ffprobe_binary', drupal_realpath($this->drupalGetTestFiles('binary')[1]->uri));
/** @var \FFMpeg\FFMpeg $ffmpeg */
$ffmpeg = php_ffmpeg();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment