-
Notifications
You must be signed in to change notification settings - Fork 4
/
release-howto
61 lines (43 loc) · 1.11 KB
/
release-howto
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
60
61
To Release
----------
Prerequisities:
libdevel-cover-perl libtemplate-perl libtest-pod-coverage-perl libppi-html-perl
(Notes.)
Commit all changes.
Run tests:
for t in t/*.t; do
PERL5LIB=.. perl "$t"
done
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/XML
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 [email protected]:josephw/xml-writer-perl.git master:refs/heads/gh-pages