Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
php-ffmpeg
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
php-ffmpeg
Commits
552a823d
Commit
552a823d
authored
10 years ago
by
Pierre Buyle
Browse files
Options
Downloads
Patches
Plain Diff
Use fake binaries for testing (easier to get working with Travis CI)
parent
46beade6
Branches
7.x-1.x
Branches containing commit
Tags
7.x-1.0
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+0
-4
0 additions, 4 deletions
.travis.yml
test/PHPFFMpegTestCase.test
+5
-2
5 additions, 2 deletions
test/PHPFFMpegTestCase.test
with
5 additions
and
6 deletions
.travis.yml
+
0
−
4
View file @
552a823d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
test/PHPFFMpegTestCase.test
+
5
−
2
View file @
552a823d
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment