mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-06 03:20:22 +00:00
49 lines
1.9 KiB
YAML
49 lines
1.9 KiB
YAML
dist: trusty
|
|
before_install:
|
|
- sudo apt-get update
|
|
- sudo apt-get install -y cmake libv4l-dev liblog4cpp5-dev liblivemedia-dev
|
|
- sudo apt-get install -y qemu-user-static debootstrap
|
|
- sudo debootstrap --variant=minbase --arch armhf --foreign --include=g++,libv4l-dev,liblog4cpp5-dev,liblivemedia-dev jessie 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
|
|
- pip install --user cpp-coveralls pyYaml
|
|
language: cpp
|
|
compiler:
|
|
- gcc
|
|
script:
|
|
- cmake . && make && cpack .
|
|
- rm -rf CMakeCache.txt *.a CMakeFiles
|
|
- cmake . -DCMAKE_TOOLCHAIN_FILE=raspberry.toolchain && make && cpack .
|
|
- rm -rf CMakeCache.txt *.a CMakeFiles
|
|
- cmake -DCOVERAGE=ON . && make && make test
|
|
after_success:
|
|
- coveralls --gcov-options '\-lp'
|
|
env:
|
|
global:
|
|
- secure: hcQTuiLgzgWcinU2QKOlVI7xe0/XWAf6PnBbQG6YI7CkoQWMOaayime+07CpkRFM83GnZ7pc6qeA+RzVjwTZVfyIM8/T0af0mSNqop/ciflFa8t6v3k4nmUsWB9Cw9vEPdfuzsUMU1g7+qGFBMFRQj4lwgxgVll/S9wAUjD14pU=
|
|
addons:
|
|
coverity_scan:
|
|
project:
|
|
name: mpromonet/h264_v4l2_rtspserver
|
|
build_command_prepend: cmake .
|
|
build_command: make
|
|
branch_pattern: master
|
|
notification_email: scan_notifications@example.com
|
|
before_deploy:
|
|
- export RELEASE_PKG_FILE_X86=$(ls *-x86_64.deb)
|
|
- export RELEASE_PKG_FILE_ARM=$(ls *-armhf.deb)
|
|
- echo "deploying ${RELEASE_PKG_FILE_X86} ${RELEASE_PKG_FILE_ARM} to GitHub releases"
|
|
deploy:
|
|
provider: releases
|
|
api_key:
|
|
secure: HvPy3gyZ1nGPLAMgpRvJO2yFqpYBU7HzPQVr8LkBuOIMfya+08fbrQ9lRmvGI/3R4hwx4aPZug2DEfedP07vFXmbISLy/VTeL9TBg86CKX4vPywaoqiv5mTECUp29pmj9R3aCrIK0ROjuXQJqLN1/+jsAEnvh/gBMplQuM6a3Zc=
|
|
file:
|
|
- "${RELEASE_PKG_FILE_X86}"
|
|
- "${RELEASE_PKG_FILE_ARM}"
|
|
skip_cleanup: true
|
|
on:
|
|
repo: mpromonet/h264_v4l2_rtspserver
|
|
tags: true
|