加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.travis.yml 2.97 KB
一键复制 编辑 原始数据 按行查看 历史
Zhi Li 提交于 2020-06-27 16:07 . Feature/add enhn gain to features (#601)
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化