v4l2rtspserver/.travis.yml

57 lines
1.8 KiB
YAML
Raw Normal View History

2018-01-27 13:26:17 +00:00
dist: xenial
2015-03-25 21:38:09 +00:00
env:
global:
2018-01-20 13:40:36 +00:00
- secure: jKV3Hj/lvoNjU2JUSUlLsLAHX+BI0R27+qTEPSihHpNGB+NOvbwlfpisrqxA/9nanVhtq9I3PJi2Jd5Pkg+3TkYvRq62ZT1Ty/DuxbQmMWlhEZT6wxbVS7919OZ3K0WAOizt3/HzSxL5XZheGRAKf89SoUF6mOP4V3DCh5rzze4=
matrix:
- TOOLCHAIN=
- TOOLCHAIN=raspberry.toolchain
2018-02-17 15:45:07 +00:00
- TOOLCHAIN=mips.toolchain
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: coverage
notification_email: scan_notifications@example.com
2018-01-20 13:40:36 +00:00
apt:
2018-02-17 15:58:55 +00:00
sources:
- deadsnakes
- ubuntu-toolchain-r-test
2018-01-20 13:40:36 +00:00
packages:
- git
- cmake
- liblog4cpp5-dev
- liblivemedia-dev
- libasound2-dev
2018-02-17 15:45:07 +00:00
- g++-mips-linux-gnu
2018-01-20 13:40:36 +00:00
before_install:
2018-02-17 16:41:15 +00:00
- sudo apt-get update
- sudo apt-get install g++-mips-linux-gnu
2018-01-20 13:40:36 +00:00
- pip install --user cpp-coveralls pyYaml
language: cpp
compiler: gcc
script:
- echo "TOOLCHAIN=$TOOLCHAIN"
2018-01-20 21:36:11 +00:00
- if [ "$TOOLCHAIN" == "raspberry.toolchain" ]; then git clone --depth 1 https://github.com/raspberrypi/tools.git rpi_tools && export PATH=$PATH:$(pwd)/rpi_tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin ; fi
- if [ "${TOOLCHAIN}" != "" ]; then cmake -DCMAKE_TOOLCHAIN_FILE=$(pwd)/${TOOLCHAIN} . ; else cmake . ; fi
2018-01-20 13:50:53 +00:00
#build
- make
- cpack .
2018-01-20 13:40:36 +00:00
#run coverage test
2018-01-20 16:34:32 +00:00
- if [ "$COVERAGE" != "" ]; then cmake -DCOVERAGE=ON . && make && make test; fi
2018-01-20 13:40:36 +00:00
after_success:
2018-01-20 16:34:32 +00:00
- if [ "$COVERAGE" != "" ]; then coveralls --gcov-options '\-lp'; fi
2015-10-17 11:09:20 +00:00
before_deploy:
- export RELEASE_DEB_FILE=$(ls *.deb)
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_DEB_FILE}"
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