Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 59 lines (41 sloc) 1.12 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
To Release
----------

Prerequisities:
libdevel-cover-perl libtemplate-perl libtest-pod-coverage-perl libppi-html-perl

(Notes.)

Commit all changes.

Run tests:
PERL5LIB=. perl XML/t/01_main.t

Bump version in:
Writer.pm
Makefile.PL
META.yml

Update changelog.

git commit -a

xwver=A.BCD
git tag -s xml-writer-$xwver

git push origin master xml-writer-$xwver

Locally,

# Create a distribution from the tag
mkdir /tmp/xml-writer-release
git archive xml-writer-$xwver | tar -x -C /tmp/xml-writer-release
cd /tmp/xml-writer-release

perl Makefile.PL
make dist

# Generate coverage report for the new release
tar -xf XML-Writer-$xwver.tar.gz -C /tmp
cd /tmp/XML-Writer-$xwver
perl Makefile.PL
cover -test -report Html_basic -outputdir coverage

Upload to CPAN.

Update web page:
./gen-index.pl >generated-index.html

mkdir temp-website
cp style.css temp-website/
cp -pr /tmp/XML-Writer-$xwver/coverage temp-website/
cp generated-index.html temp-website/index.html

cd temp-website
git init
git add .
git commit -m 'Generated website.'

git push -f git@github.com:josephw/xml-writer-perl.git master:refs/heads/gh-pages
Something went wrong with that request. Please try again.