v4l2rtspserver/.travis.yml

49 lines
1.9 KiB
YAML
Raw Normal View History

2015-11-23 19:15:09 +00:00
dist: trusty
2015-10-17 11:09:20 +00:00
before_install:
2015-10-31 22:02:13 +00:00
- sudo apt-get update
2015-11-23 20:34:36 +00:00
- sudo apt-get install -y cmake libv4l-dev liblog4cpp5-dev liblivemedia-dev
- sudo apt-get install -y qemu-user-static debootstrap
2015-10-31 21:58:30 +00:00
- sudo debootstrap --variant=minbase --arch armhf --foreign --include=g++,libv4l-dev,liblog4cpp5-dev,liblivemedia-dev wheezy rootfs
- sudo cp /usr/bin/qemu-arm-static rootfs/usr/bin/
- sudo chroot rootfs /debootstrap/debootstrap --second-stage
- git clone https://github.com/raspberrypi/tools.git rpi_tools
- export PATH=$(pwd)/rpi_tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin:$PATH
2016-02-29 17:37:14 +00:00
- pip install --user cpp-coveralls pyYaml
2014-09-12 21:21:42 +00:00
language: cpp
compiler:
- gcc
2015-10-17 11:09:20 +00:00
script:
2015-10-31 21:58:30 +00:00
- cmake . && make && cpack .
- rm -rf CMakeCache.txt *.a CMakeFiles
- cmake . -DCMAKE_TOOLCHAIN_FILE=raspberry.toolchain && make && cpack .
2016-01-30 11:43:46 +00:00
- rm -rf CMakeCache.txt *.a CMakeFiles
- cmake -DCOVERAGE=ON . && make && make test
after_success:
- coveralls --gcov-options '\-lp'
2015-03-25 21:38:09 +00:00
env:
global:
2015-10-17 11:09:20 +00:00
- secure: hcQTuiLgzgWcinU2QKOlVI7xe0/XWAf6PnBbQG6YI7CkoQWMOaayime+07CpkRFM83GnZ7pc6qeA+RzVjwTZVfyIM8/T0af0mSNqop/ciflFa8t6v3k4nmUsWB9Cw9vEPdfuzsUMU1g7+qGFBMFRQj4lwgxgVll/S9wAUjD14pU=
2015-03-25 21:38:09 +00:00
addons:
coverity_scan:
project:
2015-10-17 11:09:20 +00:00
name: mpromonet/h264_v4l2_rtspserver
build_command_prepend: cmake .
build_command: make
branch_pattern: master
notification_email: scan_notifications@example.com
2015-10-17 11:09:20 +00:00
before_deploy:
- export RELEASE_PKG_FILE_X86=$(ls *-x86_64.deb)
2015-11-21 18:22:23 +00:00
- export RELEASE_PKG_FILE_ARM=$(ls *-armhf.deb)
- echo "deploying ${RELEASE_PKG_FILE_X86} ${RELEASE_PKG_FILE_ARM} to GitHub releases"
2015-10-17 11:09:20 +00:00
deploy:
provider: releases
api_key:
secure: HvPy3gyZ1nGPLAMgpRvJO2yFqpYBU7HzPQVr8LkBuOIMfya+08fbrQ9lRmvGI/3R4hwx4aPZug2DEfedP07vFXmbISLy/VTeL9TBg86CKX4vPywaoqiv5mTECUp29pmj9R3aCrIK0ROjuXQJqLN1/+jsAEnvh/gBMplQuM6a3Zc=
file:
- "${RELEASE_PKG_FILE_X86}"
- "${RELEASE_PKG_FILE_ARM}"
2015-10-17 11:09:20 +00:00
skip_cleanup: true
on:
repo: mpromonet/h264_v4l2_rtspserver
tags: true