代码拉取完成,页面将自动刷新
os: linux
dist: bionic
language: c++
cache: ccache
addons:
apt:
update: true
sources:
- sourceline: "ppa:ubuntu-toolchain-r/test"
- sourceline: "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- python3-pip
- ninja-build
- python3-setuptools
- ccache
- yasm
homebrew:
packages:
- ninja
- ccache
- yasm
update: true
before_install: "sudo chown -R travis: $HOME/.ccache"
install:
- ccache -s
- pip3 install meson
- |
if type apt-get; then
case "$CC" in
gcc-7) sudo apt-get install -qq gcc-7 g++-7 ;;
gcc-8) sudo apt-get install -qq gcc-8 g++-8 ;;
gcc-9) sudo apt-get install -qq gcc-9 g++-9 ;;
clang-6.0) sudo apt-get install -qq clang-6.0 ;;
clang) sudo apt-get install -qq clang ;;
esac
fi
- export CC="ccache $CC" CXX="ccache $CXX"
after_script:
- ccache -s
matrix:
fast_finish: true
include:
- name: libvmaf GCC-7
env: CC=gcc-7 CXX=g++-7
script: &base-gcc-script
- mkdir libvmaf/build && cd libvmaf/build
- meson .. --buildtype release
- sudo ninja -v install
- sudo ninja -v test
- cd $TRAVIS_BUILD_DIR
- name: libvmaf GCC-9
env: CC=gcc-9 CXX=g++-9
script: *base-gcc-script
- name: libvmaf Clang
env: CC=clang CXX=clang++
script: *base-gcc-script
- name: libvmaf AppleClang
os: osx
osx_image: xcode11.2
compiler: clang
script: *base-gcc-script
- name: Python3 Tox
language: python
python: "3.7"
env: CC=gcc-7 CXX=g++-7
cache: &python-cache
pip: true
directories:
- $HOME/.ccache
before_script: *base-gcc-script
script: &python-tox
- pip3 install tox-travis
- make -C third_party/libsvm -j lib
- tox -c python/ -- -v -p no:warnings -m 'main or lib' --doctest-modules
- name: libvmaf FFmpeg
before_script: *base-gcc-script
script:
- git clone https://github.com/FFmpeg/FFmpeg --branch master --depth=1 ffmpeg && cd ffmpeg
- "sudo chown -R travis: $HOME/.ccache"
- CFLAGS="-static" ./configure --enable-libvmaf --enable-version3 || less ffbuild/config.log
- make --quiet -j $(nproc) && sudo make install
- curl https://gist.githubusercontent.com/1480c1/0c4575da638ef6e8203feffd0597de16/raw/akiyo_cif.tar.xz.base64 | base64 -d | tar xJ
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/x86_64-linux-gnu
- vmaf_score=$(ffmpeg -hide_banner -nostats -i encoded.mkv -i orig.mkv -filter_complex libvmaf -f null - 2>&1 | grep 'VMAF score' | tr ' ' '\n' | tail -n1)
- echo "$vmaf_score"
- |
if [[ $vmaf_score != "93.656203" ]]; then
echo "vmaf Score doesn't match 93.656203"
return 1
else
echo "vmaf score matches"
return 0
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。