travis: use generic directory name for ffmpeg

This commit is contained in:
Karl Kroening 2017-11-01 00:25:21 -07:00
parent 38f2e703d2
commit 39741f49c3

View File

@ -1,9 +1,10 @@
language: python
before_install:
- >
[ -f ffmpeg-3.3.4-64bit-static/ffmpeg ] || (
[ -f ffmpeg-release/ffmpeg ] || (
curl -O https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz &&
tar Jxf ffmpeg-release-64bit-static.tar.xz
mkdir -p ffmpeg-release &&
tar Jxf ffmpeg-release-64bit-static.tar.xz --strip-components=1 -C ffmpeg-release
)
matrix:
include:
@ -28,9 +29,9 @@ matrix:
install:
- pip install tox
script:
- export PATH=$(readlink -f ffmpeg-3.3.4-64bit-static):$PATH
- export PATH=$(readlink -f ffmpeg-release):$PATH
- tox -e $TOX_ENV
cache:
directories:
- .tox
- ffmpeg-3.3.4-64bit-static
- ffmpeg-release