Rev 1432 | Rev 1438 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1432 | Rev 1436 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | echo "===============================" |
18 | echo "===============================" |
19 | echo "PREPARE FOR NEW OIDPLUS VERSION" |
19 | echo "PREPARE FOR NEW OIDPLUS VERSION" |
20 | echo "===============================" |
20 | echo "===============================" |
21 | echo "" |
21 | echo "" |
22 | 22 | ||
23 | # TODO: Maybe we should also check for the word "SPONGE" and do not let commit if it is there (see TempleOS) |
- | |
24 | - | ||
25 | # Please make sure to do all these steps before committing ANYTHING: |
23 | # Please make sure to do all these steps before committing ANYTHING: |
26 | 24 | ||
27 | DIR=$( dirname "$0" ) |
25 | DIR=$( dirname "$0" ) |
28 | 26 | ||
- | 27 | # 0. Search for SPONGE (why Sponge? See TempleOS) |
|
- | 28 | echo "0. Checking for forgotten sponges" |
|
- | 29 | grep -r "SPONGE" | grep -v "\.svn/pristine" | grep -v "dev/release.sh" |
|
- | 30 | if [ $? -eq 0 ]; then |
|
- | 31 | echo "STOP! There are missing files. Please fix this problem (remove them from the SVN)" |
|
- | 32 | exit 1 |
|
- | 33 | fi |
|
- | 34 | ||
29 | # 1. Recommended: Run dev/vendor_update.sh and make sure new/deleted files are added/deleted from the SVN/Git working copy |
35 | # 1. Recommended: Run dev/vendor_update.sh and make sure new/deleted files are added/deleted from the SVN/Git working copy |
30 | echo "1. Run composer vendor update? (Recommended to do regularly)" |
36 | echo "1. Run composer vendor update? (Recommended to do regularly)" |
31 | select yn in "Yes" "No"; do |
37 | select yn in "Yes" "No"; do |
32 | case $yn in |
38 | case $yn in |
33 | Yes ) "$DIR"/vendor_update.sh; break;; |
39 | Yes ) "$DIR"/vendor_update.sh; break;; |
Line 73... | Line 79... | ||
73 | else |
79 | else |
74 | break |
80 | break |
75 | fi |
81 | fi |
76 | done |
82 | done |
77 | 83 | ||
- | 84 | # 4. Run dev/logger/verify_maskcodes.phps |
|
- | 85 | echo "4. Verify OIDplus Logger Maskcodes..." |
|
- | 86 | "$DIR"/logger/verify_maskcodes.phps |
|
- | 87 | if [ $? -ne 0 ]; then |
|
- | 88 | echo "Please fix the issues and run release script again" |
|
- | 89 | exit 1 |
|
- | 90 | fi |
|
- | 91 | ||
78 | # 4. Run phpstan |
92 | # 5. Run phpstan |
79 | echo "4. Running PHPSTAN..." |
93 | echo "5. Running PHPSTAN..." |
80 | cd "$DIR"/.. && phpstan |
94 | cd "$DIR"/.. && phpstan |
81 | echo "Is PHPSTAN output OK?" |
95 | echo "Is PHPSTAN output OK?" |
82 | select yn in "Yes" "No"; do |
96 | select yn in "Yes" "No"; do |
83 | case $yn in |
97 | case $yn in |
84 | Yes ) break;; |
98 | Yes ) break;; |
85 | No ) echo "Please fix the issues and run release script again"; exit 1;; |
99 | No ) echo "Please fix the issues and run release script again"; exit 1;; |
86 | esac |
100 | esac |
87 | done |
101 | done |
88 | 102 | ||
89 | # 5. Only if you want to start a new release: Add new entry to the top of changelog.json.php |
103 | # 6. Only if you want to start a new release: Add new entry to the top of changelog.json.php |
90 | echo "5. Please edit changelog.json.php (add '-dev' for non-stable versions)" |
104 | echo "6. Please edit changelog.json.php (add '-dev' for non-stable versions)" |
91 | sleep 2 |
105 | sleep 2 |
92 | while true; do |
106 | while true; do |
93 | nano "$DIR"/../changelog.json.php |
107 | nano "$DIR"/../changelog.json.php |
94 | echo '<?php if (!@json_decode(@file_get_contents("'$DIR'/../changelog.json.php"))) exit(1);' | php |
108 | echo '<?php if (!@json_decode(@file_get_contents("'$DIR'/../changelog.json.php"))) exit(1);' | php |
95 | if [ $? -eq 0 ]; then |
109 | if [ $? -eq 0 ]; then |
Line 98... | Line 112... | ||
98 | echo "JSON Syntax error! Please fix it" |
112 | echo "JSON Syntax error! Please fix it" |
99 | sleep 2 |
113 | sleep 2 |
100 | fi |
114 | fi |
101 | done |
115 | done |
102 | 116 | ||
103 | # 6. Run plugins/viathinksoft/adminPages/902_systemfile_check/private/gen_serverside_v3 |
117 | # 7. Run plugins/viathinksoft/adminPages/902_systemfile_check/private/gen_serverside_v3 |
104 | echo "6. Generate system file check checksum file..." |
118 | echo "7. Generate system file check checksum file..." |
105 | "$DIR"/../plugins/viathinksoft/adminPages/902_systemfile_check/private/gen_serverside_v3 |
119 | "$DIR"/../plugins/viathinksoft/adminPages/902_systemfile_check/private/gen_serverside_v3 |
106 | 120 | ||
107 | # 7. Commit to SVN or GIT |
121 | # 8. Commit to SVN or GIT |
108 | if [ -d "$DIR"/../.svn ]; then |
122 | if [ -d "$DIR"/../.svn ]; then |
109 | echo "7. Committing to SVN" |
123 | echo "8. Committing to SVN" |
110 | svn commit |
124 | svn commit |
111 | elif [ -d "$DIR"/../.git ]; then |
125 | elif [ -d "$DIR"/../.git ]; then |
112 | echo "7. ALL GOOD! PLEASE NOW COMMIT TO GIT" |
126 | echo "8. ALL GOOD! PLEASE NOW COMMIT TO GIT" |
113 | else |
127 | else |
114 | echo "7. ALL GOOD! YOU CAN RELEASE IT" |
128 | echo "8. ALL GOOD! YOU CAN RELEASE IT" |
115 | fi |
129 | fi |
116 | exit 0 |
130 | exit 0 |
117 | 131 | ||
118 | # 8. (ViaThinkSoft internal / runs automatically) Sync SVN to GitHub |
132 | # 9. (ViaThinkSoft internal / runs automatically) Sync SVN to GitHub |
119 | 133 | ||
120 | # 9. (ViaThinkSoft internal / runs automatically) Run plugins/viathinksoft/adminPages/900_software_update/private/gen_serverside_git |
134 | # 10. (ViaThinkSoft internal / runs automatically) Run plugins/viathinksoft/adminPages/900_software_update/private/gen_serverside_git |
121 | # or plugins/viathinksoft/adminPages/900_software_update/private/gen_serverside_svn |
135 | # or plugins/viathinksoft/adminPages/900_software_update/private/gen_serverside_svn |
122 | # depending wheather you want to use GIT or SVN as your development base |
136 | # depending wheather you want to use GIT or SVN as your development base |
123 | # (Repos are read from includes/edition.ini) |
137 | # (Repos are read from includes/edition.ini) |