On Github geekdenz / wms-v-presentation
Tim-Hinnerk Heuer / @geekdenzhttp://j.mp/landcare-wms-v
Andrew Cowie, David Medyckyj-Scott
while (!project_finished()) {
gather_requirements();
formulate_issues_and_tasks();
write_code();
package(); // package.php
upload_to_test_repository(); // package.php
test();
sign_off();
deploy_to_production(); // puppet / apt-get (on debian/ubuntu)
}
4:00
repeat while project not finished...
6:00$ package.php --help
Usage
=====
1. create a 'packager' directory in your project
2. create a 'packager/config.php'
3. optionally create 'packager/after-install.php'
4. optionally create 'packager/before-remove.php'
Execute
package.php
in the root directory of your project and a package will be created for you and
uploaded to your repository.
The package can be found in packager/deb with version etc. Git tags are
automatically created for you
and the version can be customized by editing 'version.txt'.
More information can be found @ https://github.com/geekdenz/packager or in
README.md.
7:00
Easy configuration based on PHP arrays.
7:30<?php return array(
'landcare-mapcache-dev' => array(
// gets executed after the setup and before the actual package build:
'before-package' => 'before-package.php',
'depends' => array( // list of dependencies
'php5-cli', 'libgdal1', 'libapr1', 'libaprutil1', 'libpixman-1-0',
),
'description' => 'MapCache is a WMS client implementing caching of '.
'MapServer layers.',
'files' => array(
'build/root/*' => '/',
),
'license' => 'GPL v3',
'repository' => 'repository.test.zen.landcareresearch.co.nz:'.
'/var/www/dists/precise/main/binary-amd64',
'url' => 'http://mapserver.org',
'vendor' => 'Regents of the University of Minnesota & Landcare Research',
'm' => 'heuert@landcareresearch.co.nz',
's' => 'dir',
't' => 'deb',
),
);
8:30
0.1.0
gets automatically updated by
$ package.php -rg
in the root directory of the project.
to
0.1.19:00
$ package.php -t
creates tag v0.1.1 linked to the current git commit
if version.txt contains 0.1.1
10:00$ sudo apt-get install landcare-package
or with puppet.
11:00