mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-31 18:59:34 -05:00
Merge branch 'feature/packaging' into next
This commit is contained in:
commit
32fe94c18d
10 changed files with 120 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1 +1,3 @@
|
|||
.idea/
|
||||
/debian
|
||||
/build
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
stages:
|
||||
- Coding Standards
|
||||
- Unit-Tests
|
||||
- Build Packages
|
||||
|
||||
variables:
|
||||
BASE_VERSION: "2.0.0"
|
||||
VERSION_SUFFIX: "-b${CI_BUILD_ID}-${CI_BUILD_REF_SLUG}"
|
||||
|
||||
PSR2 CS Test:
|
||||
stage: Coding Standards
|
||||
|
|
@ -9,7 +14,7 @@ PSR2 CS Test:
|
|||
script:
|
||||
- phpcs -p --standard=PSR2 --extensions=php --encoding=utf-8 -w -s library/Businessprocess/ application/ configuration.php run.php test
|
||||
|
||||
Xenial:
|
||||
Ubuntu Xenial:
|
||||
stage: Unit-Tests
|
||||
tags:
|
||||
- xenial
|
||||
|
|
@ -40,3 +45,37 @@ CentOS 7:
|
|||
- businessprocess
|
||||
script:
|
||||
- phpunit --testdox || phpunit --verbose
|
||||
|
||||
Xenial Packages:
|
||||
stage: Build Packages
|
||||
tags:
|
||||
- xenial
|
||||
- businessprocess
|
||||
script:
|
||||
- cp -a packaging/debian debian
|
||||
- dch --no-conf -U -M --empty -v "${BASE_VERSION}${VERSION_SUFFIX}-${CI_BUILD_REF:0:7}" "Automated build triggered by ${GITLAB_USER_ID} <${GITLAB_USER_EMAIL}>"
|
||||
- cp LICENSE debian/copyright
|
||||
- dpkg-buildpackage -us -uc
|
||||
- mkdir build
|
||||
- mv ../icingaweb2-module-businessprocess*.deb build/
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- build/*
|
||||
|
||||
Jessie Packages:
|
||||
stage: Build Packages
|
||||
tags:
|
||||
- jessie
|
||||
- businessprocess
|
||||
script:
|
||||
- cp -a packaging/debian debian
|
||||
- dch --no-conf -U -M --empty -v "${BASE_VERSION}${VERSION_SUFFIX}-${CI_BUILD_REF:0:7}" "Automated build triggered by ${GITLAB_USER_ID} <${GITLAB_USER_EMAIL}>"
|
||||
- cp LICENSE debian/copyright
|
||||
- dpkg-buildpackage -us -uc
|
||||
- mkdir build
|
||||
- mv ../icingaweb2-module-businessprocess*.deb build/
|
||||
artifacts:
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- build/*
|
||||
|
|
|
|||
18
packaging/debian/README.1st
Normal file
18
packaging/debian/README.1st
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
Building Debian packages
|
||||
========================
|
||||
|
||||
This is work in progress, please expect build instructions to change any time
|
||||
soon. Currently, to build custom Debian or Ubuntu packages, please proceed as
|
||||
follows:
|
||||
|
||||
```sh
|
||||
apt-get install --no-install-recommends \
|
||||
debhelper devscripts build-essential fakeroot libparse-debcontrol-perl
|
||||
# Eventually adjust debian/changelog
|
||||
cp -a packaging/debian debian
|
||||
dpkg-buildpackage -us -uc
|
||||
rm -rf debian
|
||||
```
|
||||
|
||||
Please move to your parent directory (`cd ..`) to find your new Debian packages.
|
||||
|
||||
6
packaging/debian/changelog
Normal file
6
packaging/debian/changelog
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
icingaweb2-module-businessprocesss (2.0.0-rc1) stable; urgency=low
|
||||
|
||||
* First packaged release
|
||||
|
||||
-- Thomas Gelf <thomas@gelf.net> Fri, 09 Jan 2016 10:37:31 +0100
|
||||
|
||||
1
packaging/debian/compat
Normal file
1
packaging/debian/compat
Normal file
|
|
@ -0,0 +1 @@
|
|||
9
|
||||
15
packaging/debian/control
Normal file
15
packaging/debian/control
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Source: icingaweb2-module-businessprocesss
|
||||
Section: admin
|
||||
Maintainer: Icinga Development Team <info@icinga.com>
|
||||
Priority: optional
|
||||
Build-Depends: debhelper (>=9)
|
||||
Standards-Version: 3.9.4
|
||||
Homepage: https://www.icinga.com
|
||||
|
||||
Package: icingaweb2-module-businessprocess
|
||||
Architecture: all
|
||||
Depends: icingaweb2-common (>= 2.2.0), php-curl|php5-curl, ${misc:Depends}
|
||||
Suggests: icingaweb2
|
||||
Description: A businessprocess viewer and modeler
|
||||
Supports legacy BPaddon config files
|
||||
|
||||
1
packaging/debian/docs
Normal file
1
packaging/debian/docs
Normal file
|
|
@ -0,0 +1 @@
|
|||
REAMDE.md
|
||||
10
packaging/debian/install
Normal file
10
packaging/debian/install
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
application usr/share/icingaweb2/modules/businessprocess
|
||||
doc usr/share/icingaweb2/modules/businessprocess
|
||||
library usr/share/icingaweb2/modules/businessprocess
|
||||
public usr/share/icingaweb2/modules/businessprocess
|
||||
test usr/share/icingaweb2/modules/businessprocess
|
||||
run.php usr/share/icingaweb2/modules/businessprocess
|
||||
configuration.php usr/share/icingaweb2/modules/businessprocess
|
||||
module.info usr/share/icingaweb2/modules/businessprocess
|
||||
phpunit.xml usr/share/icingaweb2/modules/businessprocess
|
||||
README.md usr/share/icingaweb2/modules/businessprocess
|
||||
26
packaging/debian/rules
Executable file
26
packaging/debian/rules
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/make -f
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_clean
|
||||
|
||||
build:
|
||||
dh_testdir
|
||||
|
||||
binary:
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
dh_install
|
||||
dh_installchangelogs
|
||||
dh_installinfo
|
||||
dh_installinit
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
1
packaging/debian/source/format
Normal file
1
packaging/debian/source/format
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.0 (git)
|
||||
Loading…
Reference in a new issue