forked from mpromonet/v4l2rtspserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (54 loc) · 1.79 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
dist: xenial
env:
global:
- secure: jKV3Hj/lvoNjU2JUSUlLsLAHX+BI0R27+qTEPSihHpNGB+NOvbwlfpisrqxA/9nanVhtq9I3PJi2Jd5Pkg+3TkYvRq62ZT1Ty/DuxbQmMWlhEZT6wxbVS7919OZ3K0WAOizt3/HzSxL5XZheGRAKf89SoUF6mOP4V3DCh5rzze4=
matrix:
- TOOLCHAIN=
- TOOLCHAIN=raspberry.toolchain
- TOOLCHAIN=mips.toolchain
addons:
coverity_scan:
project:
name: mpromonet/v4l2rtspserver
build_command_prepend: cmake .
build_command: make
branch_pattern: coverage
notification_email: [email protected]
apt:
sources:
- deadsnakes
packages:
- git
- cmake
- liblog4cpp5-dev
- libasound2-dev
- g++-mips-linux-gnu
before_install:
- sudo apt-get update
- sudo apt-get install g++-mips-linux-gnu
- pip install --user cpp-coveralls pyYaml
language: cpp
compiler: gcc
script:
- echo "TOOLCHAIN=$TOOLCHAIN"
- 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
#build
- make
- cpack .
#run coverage test
- if [ "$COVERAGE" != "" ]; then cmake -DCOVERAGE=ON . && make && make test; fi
after_success:
- if [ "$COVERAGE" != "" ]; then coveralls --gcov-options '\-lp'; fi
before_deploy:
- export RELEASE_DEB_FILE=$(ls *.deb)
deploy:
provider: releases
api_key:
secure: gcQy7QO09vfGtcRMi8D+6VykDfK1tuz1jEZRmJER6eZ0p2gRi4F6mtsMRJWt3QsKkZQWkJpPTvCfv9GyNmWTrZV746y5QVnd+mjPx+6K/LgroK4LWgOgzJ6zQ6qfDKU80GbxJOnNv9/HmIcxSCiactxS50tbvntqpBGCmiIL+4U=
file:
- "${RELEASE_DEB_FILE}"
skip_cleanup: true
on:
repo: mpromonet/v4l2rtspserver
tags: true