v4l2rtspserver/.travis.yml

55 lines
2.0 KiB
YAML
Raw Normal View History

dist: trusty
2017-04-02 11:18:17 +00:00
sudo: required
2015-10-17 11:09:20 +00:00
before_install:
2017-08-15 18:45:55 +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 .
#cleanup
2016-09-03 17:06:40 +00:00
- rm -rf CMakeCache.txt *.a CMakeFiles
#build on chroot system
- sudo mkdir rootfs/home/v4l2rtspserver
- sudo mount --bind . rootfs/home/v4l2rtspserver
- sudo chroot rootfs bash -c "cd /home/v4l2rtspserver && 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:
2017-04-09 13:29:05 +00:00
secure: gcQy7QO09vfGtcRMi8D+6VykDfK1tuz1jEZRmJER6eZ0p2gRi4F6mtsMRJWt3QsKkZQWkJpPTvCfv9GyNmWTrZV746y5QVnd+mjPx+6K/LgroK4LWgOgzJ6zQ6qfDKU80GbxJOnNv9/HmIcxSCiactxS50tbvntqpBGCmiIL+4U=
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