2013-09-23 20:28:10 +08:00
|
|
|
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"
|
2013-09-25 08:39:34 +08:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- modern
|
2016-07-24 07:26:10 +08:00
|
|
|
cache: ccache
|
2014-11-29 05:02:22 +08:00
|
|
|
addons:
|
|
|
|
sauce_connect:
|
|
|
|
username: "zoneminder"
|
|
|
|
access_key: "046ec7c1-c598-4e7e-949a-f86e725d1722"
|
2013-09-23 20:28:10 +08:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- LD_LIBRARY_PATH="/usr/local/lib:/opt/libjpeg-turbo/lib:$LD_LIBRARY_PATH"
|
|
|
|
- DEB_HOST_GNU_TYPE=$(dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
|
|
|
- DEB_BUILD_GNU_TYPE=$(dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
2013-09-28 18:04:41 +08:00
|
|
|
- CFLAGS="-DZM_FFMPEG_CVS -DHAVE_LIBCRYPTO -I/usr/local/include"
|
|
|
|
- CXXFLAGS="$CFLAGS"
|
|
|
|
matrix:
|
|
|
|
- ZM_BUILDMETHOD=cmake
|
2013-09-23 20:28:10 +08:00
|
|
|
compiler:
|
|
|
|
- gcc
|
2016-02-13 13:34:49 +08:00
|
|
|
- clang
|
2013-09-23 20:28:10 +08:00
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
2016-12-06 10:42:48 +08:00
|
|
|
- sudo apt-get install -y libpolkit-gobject-1-dev zlib1g-dev apache2 mysql-server 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
|
2013-09-24 00:17:59 +08:00
|
|
|
install:
|
2016-02-25 19:38:19 +08:00
|
|
|
- git clone -b n3.0 --depth=1 git://source.ffmpeg.org/ffmpeg.git
|
2014-10-02 23:39:17 +08:00
|
|
|
- cd ffmpeg
|
2013-09-24 00:17:59 +08:00
|
|
|
- ./configure --enable-shared --enable-swscale --enable-gpl --enable-libx264 --enable-libvpx --enable-libvorbis --enable-libtheora
|
|
|
|
- make -j `grep processor /proc/cpuinfo|wc -l`
|
|
|
|
- sudo make install
|
|
|
|
- sudo make install-libs
|
2013-09-23 20:51:31 +08:00
|
|
|
before_script:
|
2013-09-23 21:51:40 +08:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2014-01-05 03:48:13 +08:00
|
|
|
- mysql -uroot -e "CREATE DATABASE IF NOT EXISTS zm"
|
|
|
|
- mysql -uroot -e "GRANT ALL ON zm.* TO 'zmuser'@'localhost' IDENTIFIED BY 'zmpass'";
|
|
|
|
- mysql -uroot -e "FLUSH PRIVILEGES"
|
2013-09-24 00:18:17 +08:00
|
|
|
script:
|
2016-08-10 21:35:49 +08:00
|
|
|
- if [ "$ZM_BUILDMETHOD" = "cmake" ]; then cmake -DZM_ONVIF=OFF -DCMAKE_INSTALL_PREFIX="/usr"; fi
|
2013-09-24 00:18:17 +08:00
|
|
|
- make
|
2013-09-27 21:47:58 +08:00
|
|
|
- sudo make install
|
2013-09-28 18:04:41 +08:00
|
|
|
- if [ "$ZM_BUILDMETHOD" = "cmake" ]; then sudo ./zmlinkcontent.sh; fi
|
2013-10-01 20:29:54 +08:00
|
|
|
- mysql -uzmuser -pzmpass < db/zm_create.sql
|
|
|
|
- mysql -uzmuser -pzmpass zm < db/test.monitor.sql
|
2013-09-28 18:32:43 +08:00
|
|
|
- sudo zmpkg.pl start
|
2014-01-03 00:45:26 +08:00
|
|
|
- sudo zmfilter.pl -f purgewhenfull
|