forked from gitools/gitools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhowto-release.txt
90 lines (65 loc) · 2.26 KB
/
howto-release.txt
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Be sure to be on 'develop' branch
git checkout develop
# Pull and push all commits
git pull
git push
# Start a new release or hotfix
git-flow release start gitools-2.2.2
git-flow hotfix start gitools-2.2.2
# Update pom.xml version
# The following command only prints to display
# Check that you are going to update only the correct versions:
find . -name pom.xml | awk '{ system("sed 0,/2.3.0-SNAPSHOT/s//2.3.0/ "$0)}' | grep -A2 -B3 2.3.0
# The following command will apply the changes
# Update all like this:
find . -name pom.xml | awk '{ system("sed -i 0,/2.3.0-SNAPSHOT/s//2.3.0/ "$0)}'
# Go to Documentation folder.
# Check in source/conf.py if the version numbers are up to date
# Generate the documentation (which hopefully is up to date).
# verify the documentation has the same version as Gitools
cd doc
## set correct version in conf.py
gedit source/conf.py
## generate html doc
make html
firefox html/index.html
# Go back and Compile and package
cd ..
mvn -P test-analysis clean install assembly:assembly
# Test new release
cd target
unzip gitools-2.3.0-bin.zip
gitools-2.3.0/gitools
cd ..
# Deploy ZIP file
scp target/gitools-2.3.0-bin.zip bgadmin@ankara:/usr/local/gitools/www/downloads/
# Deploy Webstart
# change back to the gitools root folder
./webstart-deploy.sh 2.3.0
# Update this file on the server:
/usr/local/gitools/www/downloads/latest.txt
# Deploy documentation and clean the directory
cd doc
scp -r html/* bgadmin@ankara:/usr/local/gitools/www/documentation/
make clean
cd ..
# Commit the changes
git commit -a -m "Release version 2.3.0"
# Finish the release or hotfix
git flow release finish gitools-2.2.2
git flow hotfix finish gitools-2.2.2
#if you do it manually, do not forget to create a tag:
git tag -a gitools-2.2.2 -m 'Release 2.2.2'
git push origin --tags
# Check that you are on develop branch
git checkout develop
# Update pom.xml versions to new SNAPSHOT version
# Check that you are going to update only the correct versions:
find . -name pom.xml | awk '{ system("sed 0,/2.2.2/s//2.3.0-SNAPSHOT/ "$0)}' | grep -A2 -B3 2.3.0-SNAPSHOT
# Update all like this:
find . -name pom.xml | awk '{ system("sed -i 0,/2.2.2/s//2.3.0-SNAPSHOT/ "$0)}'
# Commit
git commit -a -m "Next iteration version 2.3.0-SNAPSHOT"
# Push develop
git push
git push origin