[FFmpeg-devel] [PATCH] travis: setup for automated coverity builds
Timo Rothenpieler
timo at rothenpieler.org
Thu Dec 1 23:22:35 EET 2016
Travis can only run scheduled builds daily, weekly or monthly.
So we run them daily, and use a bit of logic in the .travis.yml to
cancel out early on 3 days per week.
---
.travis.yml | 32 +++++++-------------------------
1 file changed, 7 insertions(+), 25 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index e541ee1..abc264a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,26 +1,8 @@
-language: c
-sudo: false
-os:
- - linux
- - osx
-addons:
- apt:
- packages:
- - yasm
- - diffutils
-compiler:
- - clang
- - gcc
-cache:
- directories:
- - ffmpeg-samples
-before_install:
- - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update --all; fi
-install:
- - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install yasm; fi
+sudo: required
+services:
+ - docker
script:
- - mkdir -p ffmpeg-samples
- - ./configure --samples=ffmpeg-samples --cc=$CC
- - make -j 8
- - make fate-rsync
- - make check -j 8
+- DOW="$(date "+%u")"
+- for d in 2 4 6; do [[ "$d" == "$DOW" ]] && exit 0; done
+- docker pull ffmpeg/coverity
+- docker run --env COV_EMAIL --env COV_TOKEN ffmpeg/coverity
--
2.8.3
More information about the ffmpeg-devel
mailing list