forked from klauweg/vitalk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 3.58 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
dist: trusty
sudo: required
language: c
compiler: gcc
addons:
apt:
packages:
- gcc-arm-linux-gnueabihf
- libc6-dev-armhf-cross
- zip
- checkinstall
coverity_scan:
project:
name: speters/vitalk
description: Build submitted via Travis CI
notification_email:
secure: LIIDJ9bcwkIy90NGu8cYuZGbJqTsfZ+Y2hfVly/WHXAzrA35/Gw1LeG0Jkcz4QwWGJ/7t2ZlClOtRBLSHY5FSh8ZpE/qbmOA6mW8AFUzInKfyteXK7YDSJSDJh+ehVguu+0z/IWWOArGq7qWYuDX0jgdSN+w/+5/YsBr9a/9lu7fe/lQIqfKOXwrlGs/TvCmYoVcFiFr2QF9VjQuvQYy62I7KGnhCK1vfTCKdV/ofJMrH12PkRd8zS/CZtZdoM4gUL0lwzGIMF11VwYSdyRsJvlR685TTTqpuGZ9LYoPmEmvN6jcIAMetIzT3gzbjgmAVQLPVZE/bYCeDBT1tEvOPWKdZ3zsbsBJYEOcYPRDEH3pkJG+k9LfJjxcSpBJoZgd5hUuKuLHYN2pfWNyxBs1CU0Hbz+/w3QkFTBcfEloO6fRNAor8+YA8DwWHF/1fHp3UyggB6TlGYCsUsoZxpBxX8xrb2oMZhSEKThgyaedHaCrB1YzUVSxMAD45aGFJXXoB4nzizbIZY9j7iDMVUv5dfXtLHBj4xDWnUZdscSKYr09koJzzZ0MOFMdedqc1s6sBTrFQpEK+4OLiycGI8X2j2JtZIE9LXGru3Ews0EkvK6huVUv4q7LcuNWM99bFpXiPVU+84zQ/zywwlxHCkUcKeWaps8dF2xq0pdYfcSAAbU=
build_command_prepend: make clean
build_command: make -j 4 all
branch_pattern: coverity_scan
env:
global:
- GH_REPO=$(echo -n "${TRAVIS_REPO_SLUG}" | cut -d "/" -f 2)
- GH_USER=$(echo -n "${TRAVIS_REPO_SLUG}" | cut -d "/" -f 1)
- secure: oR6s6tTx7YPbX3xhZ+ACemnlBeFwMjG0Lw5hlFeyJoXOx+Z/6L9aPyFgVXUnx5OO9V14PUCEZs14OIcRlacFbILSEfP8t+v+EqmUlhPCA1Tz126264xTxSftJORTg6AvLukp6HRuv3fFgyUwFcXB8vf+aCqsJ+62QclCwQVOURT8A9KHqXeJ/tPTa3wUBjGoo8c0MtTHt/a2Cy053wJrGZ/x99aeY16bpRNX0c2f4iERkLlhLXth7IDrSOBVo/X7SuxP1TmDYuDfSE9WgZqKb4NTglUCF3dWKcgKTWxdVcefGoAZ1QNmWIw3hPnk5NeP6iwD8+Zqun4VIFXfl0P2I5VGI8D6cGb8C6Lmf2pK6Qu8dfjN9aZ4TFa/nmOoBDnOqdOJ+xLWoqTbWRMSbbZfIp+gp3G7DQS7aqU8SFfeXy/LSzs7kaaBlH6sac+KblM6XQmaK8sFmj8+utqb1rxjFoJ1zP7jAa5smDDVtUxrXpnqkPDPGL4nKqmo8FMhXaa0ouUTAZmDqrf1bLFdh5M3xDHpwQIJUQMWEknrbYHEbylSHOJI+fbfHjA+nHnkR2oJtCkFxyawJdZ8kMuCvZXNGuZcDRIsw336JfdqbIK8XQDgALcFjQUnJau1jDVjhtt6Cp8GWXkVHf4gJni471/FaZXslyhEHPs1Tdw7htjFfHA=
matrix:
- ARCH="armhf" TARGET="arm-linux-gnueabihf" XCC="${TARGET}-gcc"
- ARCH=$(dpkg --print-architecture) TARGET=$(gcc -dumpmachine) XCC="gcc"
before_install:
- echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END
CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
script:
- VERSION=$(git describe --long --tags --always --match '[0-9]\.[0-9].*')
- DEPLOYFILEPREFIX="${GH_REPO}_${VERSION}-${TRAVIS_BUILD_NUMBER}_${ARCH}"
- CC=${XCC} make clean all
after_success:
- test -n "${TRAVIS_TAG}" && zip "${DEPLOYFILEPREFIX}.zip" vitalk LICENSE README.md
- test -n "${TRAVIS_TAG}" && sudo checkinstall --strip=no --install=no --pkgname="$GH_REPO" --pkgversion="$VERSION" --pkgrelease=$TRAVIS_BUILD_NUMBER --arch="$ARCH" --maintainer="${GH_USER}@GitHub" -D -y install vitalk /usr/local/sbin/ && sudo chown travis "${DEPLOYFILEPREFIX}.deb"
deploy:
provider: releases
api_key:
secure: indsJS5JaxH33nNVuRbJ+2j886QNJT6PlvcLVtJyi7zgEcfvP7ioifjb2/QLPNzTQ6OG/JZGOU7JyF14Dhfx5Nkk8IpNjIUB5uoZvhi3vDsYEIHH3JL/JRWgHaz8wZIR1RULp1YrLyWtbOPTsPgp1mtyoToU1RQpH5hwbQlLr6RH6EMYnd46+Dgp9BxrT4i9n/JPjMczP1vHr5gpgJg/cRetT+XJrBeDVW5sSf4ZAn0BnqeNLhDk5xLPDE2+zm5GH0qlhqGU8dH5TRoUrsQnoXHjw61wY/zlYx3qE9BEANncHCd88GLiaL9gTzPctGI+0OT7F36p7h3gj0Xsa0/g/tUZLvSeNn9awiPdg9K+mVhHocmWMY5EmO8zJcrRz0JI/nxT1DAPpSJG0pGBKdr5LfYrt6GEpB7AaEuzGeulv18DcIomXiaKauy5ubtHcmCh+mo5ew8cMRdwTA1+nI9PUkGJNaupOCmCHs5HtQH8YO9gs+zhb5zpqJV6te6Fwty0o2aTOlOOxVnqWsie1JwEbVrLXi/XD70Fcc6qCw+6HzAHpVqHpZ7lGiZcqw643AfYlL+rIS+lpAgM74SLqtEbwwKGmCJdxmru2lZ7f72hfDA+8UQrEzSrG9r/wF0pwzifdz6vaW4lPKuD9t69mTLIQf/jW1JnJIHcZlkaTv9Lh+w=
file:
- "${DEPLOYFILEPREFIX}.zip"
- "${DEPLOYFILEPREFIX}.deb"
skip_cleanup: true
on:
tags: true