Skip to content

Commit

Permalink
Build debian packages in travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arekinath committed May 15, 2020
1 parent f4b7003 commit deebdab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ matrix:
- os: osx
osx_image: xcode9.2
- os: linux
dist: bionic
script:
- make
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then sudo make package; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then make; sudo make package; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then make deb; fi
addons:
apt:
update: true
Expand All @@ -18,13 +19,19 @@ addons:
- libedit-dev
- libreadline-dev
- libcryptsetup-dev
- libjson-c-dev
- libpam-dev
- devscripts
- fakeroot
- debhelper
artifacts:
paths:
- $(ls macosx/pivy-*.pkg | tr "\n" ":")
- $(ls ../*.deb | tr "\n" ":")
coverity_scan:
project:
name: joyent/pivy
version: 0.2.2
name: arekinath/pivy
version: 0.5.0
build_command_prepend: make $(pwd)/libressl/crypto/.libs/libcrypto.a
build_command: make
branch_pattern: coverity
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ libdir ?= $(prefix)/lib
binowner ?= root
bingroup ?= wheel

VERSION = 0.4.0
VERSION = 0.5.0

SECURITY_CFLAGS = \
-fstack-protector-all -fwrapv -fPIC \
Expand Down Expand Up @@ -515,4 +515,8 @@ setup: .dist/default_config
@echo ' if [[ ! -e "$$SSH_AUTH_SOCK" || "$$SSH_AUTH_SOCK" == *"/keyring/"* ]]; then'
@echo ' export SSH_AUTH_SOCK="$$XDG_RUNTIME_DIR/piv-ssh-default.socket"'
@echo ' fi'

deb:
git archive --prefix pivy-$(VERSION)/ -o ../pivy_$(VERSION).orig.tar.gz HEAD
DEB_BUILD_OPTIONS="parallel=4" debuild -us -uc
endif

0 comments on commit deebdab

Please sign in to comment.