zoneminder/.travis.yml

61 lines
1.4 KiB
YAML
Raw Normal View History

language: cpp
2016-02-13 13:22:44 +08:00
sudo: required
dist: trusty
2013-09-23 20:33:02 +08:00
notifications:
irc: "chat.freenode.net#zoneminder-dev"
branches:
except:
- modern
2016-07-24 07:26:10 +08:00
cache: ccache
addons:
sauce_connect:
username: "zoneminder"
access_key: "046ec7c1-c598-4e7e-949a-f86e725d1722"
env:
2017-02-18 21:57:51 +08:00
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:
2017-02-18 21:57:51 +08:00
- gcc
- clang
2016-12-06 21:12:36 +08:00
services:
2017-02-18 21:57:51 +08:00
- 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:
2017-02-18 21:57:51 +08:00
- utils/packpack/startpackpack.sh
- if [ ${OS} == "ubuntu" ] && [ ${DIST} == "trusty" ]; then
sudo gdebi --non-interactive build/zoneminder_*amd64.deb;
2017-02-18 21:57:51 +08:00
mysql -uzmuser -pzmpass zm < db/test.monitor.sql;
sudo /usr/bin/zmpkg.pl start;
sudo /usr/bin/zmfilter.pl -f purgewhenfull;
2017-02-18 21:57:51 +08:00
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}"