Skip to content

Commit

Permalink
Use Codecov.io for coverage reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Jan 12, 2020
1 parent d0e5d06 commit c83c098
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ addons:
- qtmultimedia5-dev
- doxygen
- graphviz
- curl
packages: &ff_common # Common set of FFmpeg packages
- *p_common
- libfdk-aac-dev
Expand All @@ -34,7 +35,10 @@ addons:
matrix:
include:
- name: "FFmpeg 2 GCC (Ubuntu 16.04 Xenial)"
env: BUILD_VERSION=ffmpeg2
env:
- BUILD_VERSION=ffmpeg2
- CMAKE_EXTRA_ARGS=""
- TEST_TARGET="os_test"
os: linux
dist: xenial
addons:
Expand All @@ -46,7 +50,10 @@ matrix:
- *ff_common

- name: "FFmpeg 3 GCC (Ubuntu 18.04 Bionic)"
env: BUILD_VERSION=ffmpeg3
env:
- BUILD_VERSION=ffmpeg3
- CMAKE_EXTRA_ARGS=""
- TEST_TARGET=test
os: linux
dist: bionic
addons:
Expand All @@ -59,7 +66,10 @@ matrix:
- qt5-default

- name: "FFmpeg 4 GCC (Ubuntu 18.04 Bionic)"
env: BUILD_VERSION=ffmpeg4
env:
- BUILD_VERSION=ffmpeg4
- CMAKE_EXTRA_ARGS=""
- TEST_TARGET=test
os: linux
dist: bionic
addons:
Expand All @@ -82,7 +92,10 @@ matrix:
- libswresample3

- name: "FFmpeg 3 Clang (Ubuntu 18.04 Bionic)"
env: BUILD_VERSION=ffmpeg3
env:
- BUILD_VERSION=clang_ffmpeg3
- CMAKE_EXTRA_ARGS=""
- TEST_TARGET=test
os: linux
dist: bionic
compiler: clang
Expand All @@ -96,9 +109,31 @@ matrix:
- qt5-default
- libomp-dev

- name: "Coverage (Ubuntu 18.04 Bionic)"
env:
- BUILD_VERSION=coverage_ffmpeg3
- CMAKE_EXTRA_ARGS="-DENABLE_COVERAGE=1"
- TEST_TARGET=coverage
os: linux
dist: bionic
addons:
apt:
sources:
- sourceline: 'ppa:openshot.developers/libopenshot-daily'
- sourceline: 'ppa:beineri/opt-qt-5.12.3-bionic'
packages:
- *ff_common
- qt5-default
- lcov
- binutils-common # For c++filt

script:
- mkdir -p build; cd build;
- cmake -DCMAKE_BUILD_TYPE:STRING="Debug" ../
- make VERBOSE=1
- make os_test
- make ${TEST_TARGET}
- make install DESTDIR="$BUILD_VERSION"
- cd ..

after_success:
- if [ "x$TEST_TARGET" = "xcoverage" ]; then bash <(curl -s https://codecov.io/bash) -f build/coverage.info || echo "Codecov did not collect coverage reports"; fi

0 comments on commit c83c098

Please sign in to comment.