initial commit to use packpack

This commit is contained in:
Andy Bauer 2017-02-18 07:57:51 -06:00
parent 33e8afa0e0
commit 3bdb84cf0f
1 changed files with 43 additions and 34 deletions

View File

@ -12,40 +12,49 @@ addons:
username: "zoneminder" username: "zoneminder"
access_key: "046ec7c1-c598-4e7e-949a-f86e725d1722" access_key: "046ec7c1-c598-4e7e-949a-f86e725d1722"
env: env:
global: matrix:
- LD_LIBRARY_PATH="/usr/local/lib:/opt/libjpeg-turbo/lib:$LD_LIBRARY_PATH" - OS=el DIST=6
- DEB_HOST_GNU_TYPE=$(dpkg-architecture -qDEB_HOST_GNU_TYPE) - OS=el DIST=7
- DEB_BUILD_GNU_TYPE=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE) - OS=fedora DIST=24
- CFLAGS="-DZM_FFMPEG_CVS -DHAVE_LIBCRYPTO -I/usr/local/include" - OS=fedora DIST=25
- CXXFLAGS="$CFLAGS" - OS=ubuntu DIST=trusty
matrix: - OS=ubuntu DIST=xenial
- ZM_BUILDMETHOD=cmake
compiler: compiler:
- gcc - gcc
- clang - clang
services: services:
- mysql - mysql
before_install: - docker
- sudo apt-get update -qq addons:
- sudo apt-get install -y libpolkit-gobject-1-dev zlib1g-dev apache2 php5 php5-mysql build-essential libmysqlclient-dev libssl-dev libbz2-dev libpcre3-dev libdbi-perl libarchive-zip-perl libdate-manip-perl libdevice-serialport-perl libmime-perl libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm automake autoconf cmake libjpeg-turbo8-dev apache2-mpm-prefork libapache2-mod-php5 php5-cli libtheora-dev libvorbis-dev libvpx-dev libx264-dev libvlccore-dev libvlc-dev apt:
install: sources:
- git clone -b n3.0 --depth=1 git://source.ffmpeg.org/ffmpeg.git # We need this ppa for libsys-meminfo-perl
- cd ffmpeg - sourceline: 'ppa:iconnor/zoneminder'
- ./configure --enable-shared --enable-swscale --enable-gpl --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libtheora - key_url: 'http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x4D0BF748776FFB04'
- make -j `grep processor /proc/cpuinfo|wc -l` packages:
- sudo make install - gdebi
- sudo make install-libs - yum-utils
before_script: - patch
- cd $TRAVIS_BUILD_DIR - git
- mysql -uroot -e "CREATE DATABASE IF NOT EXISTS zm" - curl
- mysql -uroot -e "GRANT ALL ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'zmpass'";
- mysql -uroot -e "FLUSH PRIVILEGES"
script: script:
- if [ "$ZM_BUILDMETHOD" = "cmake" ]; then cmake -DZM_ONVIF=OFF -DCMAKE_INSTALL_PREFIX="/usr"; fi - utils/packpack/startpackpack.sh
- make - if [ ${OS} == "ubuntu" ] && [ ${DIST} == "trusty" ]; then
- sudo make install gdebi --non-interactive build/zoneminder_*amd64.deb;
- if [ "$ZM_BUILDMETHOD" = "cmake" ]; then sudo ./zmlinkcontent.sh; fi mysql -uzmuser -pzmpass zm < db/test.monitor.sql;
- mysql -uzmuser -pzmpass < db/zm_create.sql sudo zmpkg.pl start;
- mysql -uzmuser -pzmpass zm < db/test.monitor.sql sudo zmfilter.pl -f purgewhenfull;
- sudo zmpkg.pl start fi
- sudo zmfilter.pl -f purgewhenfull 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}"