2013-09-23 20:28:10 +08:00
|
|
|
language: cpp
|
2013-09-23 20:33:02 +08:00
|
|
|
notifications:
|
|
|
|
irc: "chat.freenode.net#zoneminder-dev"
|
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)
|
|
|
|
- CXXFLAGS=" -DZM_FFMPEG_CVS -DHAVE_LIBCRYPTO -msse2 -I/usr/local/include"
|
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get update -qq
|
2013-09-24 04:05:56 +08:00
|
|
|
- sudo apt-get upgrade -y -qq
|
|
|
|
- sudo apt-get install -y -qq 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 libpcre3 libwww-perl libdbd-mysql-perl libsys-mmap-perl yasm subversion automake autoconf libjpeg-turbo8-dev libjpeg-turbo8 apache2-mpm-prefork libapache2-mod-php5 php5-cli libtheora-dev libvorbis-dev libvpx-dev libx264-dev
|
2013-09-24 00:17:59 +08:00
|
|
|
install:
|
|
|
|
- git clone git://source.ffmpeg.org/ffmpeg.git
|
|
|
|
- cd ffmpeg
|
|
|
|
- ./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
|
2013-09-23 21:59:47 +08:00
|
|
|
- libtoolize --force
|
|
|
|
- aclocal
|
|
|
|
- autoheader
|
|
|
|
- automake --force-missing --add-missing
|
|
|
|
- autoconf
|
2013-09-23 20:51:31 +08:00
|
|
|
- mysql -e 'create database zoneminder;'
|
2013-09-24 00:18:17 +08:00
|
|
|
script:
|
|
|
|
- CXXFLAGS="$CXXFLAGS" ./configure --with-libarch=lib/$DEB_HOST_GNU_TYPE --disable-debug --host=$DEB_HOST_GNU_TYPE --build=$DEB_BUILD_GNU_TYPE --with-mysql=/usr --with-webdir=/var/www/zm --with-ffmpeg=/usr --with-cgidir=/usr/lib/cgi-bin --with-webuser=www-data --with-webgroup=www-data --enable-crashtrace=no --enable-mmap=yes ZM_SSL_LIB=openssl ZM_DB_USER=travis ZM_DB_PASS=
|
|
|
|
- make
|
2013-09-23 20:28:10 +08:00
|
|
|
after_success: mysql -u travis < db/zm_create.sql
|