Skip to content

Commit a44f478

Browse files
committed
Build debian package in travis
1 parent fbe2aa0 commit a44f478

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.travis.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ dist: trusty
33
language: cpp
44
compiler:
55
- gcc
6+
addons:
7+
artifacts:
8+
debug: true
9+
paths:
10+
- $(ls DEBBUILD/*.deb | tr "\n" ":")
611
before_install:
712
- sudo apt-get -qq update
813
- sudo apt-get install -y libpoco-dev
914
- sudo apt-get install -y libboost-all-dev
1015
- sudo apt-get install -y libzmq3-dev
11-
script: autoreconf -if && ./configure --enable-zmq && make
16+
script: autoreconf -if && ./configure --enable-zmq && make deb
1217
notifications:
1318
email:
1419
recipients:

Makefile.am

+6
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@ rpm: dist
1717
install-rpm: rpm
1818
yum localinstall -y RPMS/x86_64/*.rpm
1919

20+
deb:
21+
rm -rf `pwd`/DEBBUILD
22+
mkdir -p `pwd`/DEBBUILD/libosscore-@VERSION@/DEBIAN
23+
DESTDIR=`pwd`/DEBBUILD/libosscore-@VERSION@ make install
24+
cp debian.control `pwd`/DEBBUILD/libosscore-@VERSION@/DEBIAN/control
25+
cd DEBBUILD && dpkg-deb --build libosscore-@VERSION@

debian.control.in

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
Package: libosscore-dev
1+
Package: libosscore
22
Version: @VERSION@-@PACKAGE_REVISION@
33
Section: libs
44
Priority: optional
5-
Architecture: any
5+
Architecture: amd64
6+
License: lgpl
67
Depends: libboost-all-dev, libpoco-dev, libssh-dev
78
Maintainer: Joegen Baclor <[email protected]>
89
Description: OSS Core Library
9-
OS Abstraction and OS Utilities library for OSS modules
10+
OS Abstraction, Utilities and Protocol library for OSS modules
1011

0 commit comments

Comments
 (0)