v4l2rtspserver/.travis.yml

53 lines
1.9 KiB
YAML
Raw Normal View History

2015-11-23 19:15:09 +00:00
dist: trusty
2017-04-02 11:18:17 +00:00
sudo: required
2015-10-17 11:09:20 +00:00
before_install:
2016-06-19 17:32:21 +00:00
- sudo apt-get install -y cmake liblog4cpp5-dev liblivemedia-dev libasound2-dev
2015-11-23 20:34:36 +00:00
- sudo apt-get install -y qemu-user-static debootstrap
2016-09-03 17:06:40 +00:00
# for coverage
- pip install --user cpp-coveralls pyYaml
# install chroot for cross-compilation
2016-09-03 16:53:36 +00:00
- sudo debootstrap --arch armhf --foreign --include=g++,git,make,cmake,liblog4cpp5-dev,liblivemedia-dev,libasound2-dev jessie rootfs http://sfo-korg-mirror.kernel.org/debian
2015-10-31 21:58:30 +00:00
- sudo cp /usr/bin/qemu-arm-static rootfs/usr/bin/
- sudo chroot rootfs /debootstrap/debootstrap --second-stage
2014-09-12 21:21:42 +00:00
language: cpp
compiler:
- gcc
2015-10-17 11:09:20 +00:00
script:
2016-09-03 17:06:40 +00:00
#build on native system
2015-10-31 21:58:30 +00:00
- cmake . && make && cpack .
2016-09-03 17:06:40 +00:00
#build on chroot system
- rm -rf CMakeCache.txt *.a CMakeFiles
- sudo mount --bind . rootfs/home
- sudo chroot rootfs bash -c "cd /home && cmake . && make && cpack ."
2016-09-23 13:57:18 +00:00
#run coverage test
- sudo rm -rf CMakeCache.txt *.a CMakeFiles
2016-09-23 13:57:18 +00:00
- cmake -DCOVERAGE=ON . && make && make test
2016-01-30 11:43:46 +00:00
after_success:
- coveralls --gcov-options '\-lp'
2015-03-25 21:38:09 +00:00
env:
global:
2017-04-09 11:47:16 +00:00
- secure: jKV3Hj/lvoNjU2JUSUlLsLAHX+BI0R27+qTEPSihHpNGB+NOvbwlfpisrqxA/9nanVhtq9I3PJi2Jd5Pkg+3TkYvRq62ZT1Ty/DuxbQmMWlhEZT6wxbVS7919OZ3K0WAOizt3/HzSxL5XZheGRAKf89SoUF6mOP4V3DCh5rzze4=
2015-03-25 21:38:09 +00:00
addons:
coverity_scan:
project:
2017-04-02 11:44:05 +00:00
name: mpromonet/v4l2rtspserver
2015-10-17 11:09:20 +00:00
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)
2017-04-09 13:10:53 +00:00
- export RELEASE_PKG_FILE_ARM=$(ls *-arm*.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:
2017-04-02 11:44:05 +00:00
repo: mpromonet/v4l2rtspserver
2015-10-17 11:09:20 +00:00
tags: true