zoneminder/.travis.yml

61 lines
1.4 KiB
YAML

language: cpp
sudo: required
dist: trusty
notifications:
irc: "chat.freenode.net#zoneminder-dev"
branches:
except:
- modern
cache: ccache
addons:
sauce_connect:
username: "zoneminder"
access_key: "046ec7c1-c598-4e7e-949a-f86e725d1722"
env:
matrix:
- OS=el DIST=6
- OS=el DIST=7
- OS=fedora DIST=24
- OS=fedora DIST=25
- OS=ubuntu DIST=trusty
- OS=ubuntu DIST=xenial
compiler:
- gcc
- clang
services:
- mysql
- docker
addons:
apt:
sources:
# We need this ppa for libsys-meminfo-perl
- sourceline: 'ppa:iconnor/zoneminder'
- key_url: 'http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4D0BF748776FFB04'
packages:
- gdebi
- yum-utils
- patch
- git
- curl
script:
- utils/packpack/startpackpack.sh
- if [ ${OS} == "ubuntu" ] && [ ${DIST} == "trusty" ]; then
gdebi --non-interactive build/zoneminder_*amd64.deb;
mysql -uzmuser -pzmpass zm < db/test.monitor.sql;
sudo zmpkg.pl start;
sudo zmfilter.pl -f purgewhenfull;
fi
deploy:
# Deploy packages to PackageCloud
provider: packagecloud
username: ${PACKAGECLOUD_USER}
repository: ${PACKAGECLOUD_REPO}
token: ${PACKAGECLOUD_TOKEN}
dist: ${OS}/${DIST}
package_glob: build/*.{deb,rpm}
skip_cleanup: true
on:
branch: master
condition: -n "${OS}" && -n "${DIST}" && -n "${PACKAGECLOUD_TOKEN}"