Skip to content

Commit deebdab

Browse files
committed
Build debian packages in travis-ci
1 parent f4b7003 commit deebdab

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.travis.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ matrix:
44
- os: osx
55
osx_image: xcode9.2
66
- os: linux
7+
dist: bionic
78
script:
8-
- make
9-
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo make package; fi
9+
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then make; sudo make package; fi
10+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then make deb; fi
1011
addons:
1112
apt:
1213
update: true
@@ -18,13 +19,19 @@ addons:
1819
- libedit-dev
1920
- libreadline-dev
2021
- libcryptsetup-dev
22+
- libjson-c-dev
23+
- libpam-dev
24+
- devscripts
25+
- fakeroot
26+
- debhelper
2127
artifacts:
2228
paths:
2329
- $(ls macosx/pivy-*.pkg | tr "\n" ":")
30+
- $(ls ../*.deb | tr "\n" ":")
2431
coverity_scan:
2532
project:
26-
name: joyent/pivy
27-
version: 0.2.2
33+
name: arekinath/pivy
34+
version: 0.5.0
2835
build_command_prepend: make $(pwd)/libressl/crypto/.libs/libcrypto.a
2936
build_command: make
3037
branch_pattern: coverity

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ libdir ?= $(prefix)/lib
2222
binowner ?= root
2323
bingroup ?= wheel
2424

25-
VERSION = 0.4.0
25+
VERSION = 0.5.0
2626

2727
SECURITY_CFLAGS = \
2828
-fstack-protector-all -fwrapv -fPIC \
@@ -515,4 +515,8 @@ setup: .dist/default_config
515515
@echo ' if [[ ! -e "$$SSH_AUTH_SOCK" || "$$SSH_AUTH_SOCK" == *"/keyring/"* ]]; then'
516516
@echo ' export SSH_AUTH_SOCK="$$XDG_RUNTIME_DIR/piv-ssh-default.socket"'
517517
@echo ' fi'
518+
519+
deb:
520+
git archive --prefix pivy-$(VERSION)/ -o ../pivy_$(VERSION).orig.tar.gz HEAD
521+
DEB_BUILD_OPTIONS="parallel=4" debuild -us -uc
518522
endif

0 commit comments

Comments
 (0)