Preparing new release » History » Version 36
cryptogopher, 2022-10-20 18:03
| 1 | 1 | cryptogopher | h1. Preparing new release |
|---|---|---|---|
| 2 | |||
| 3 | 23 | cryptogopher | # Sync locale strings across language files (add test to check for differences? or execute system tests in different locales?). |
| 4 | 21 | cryptogopher | # Make sure all tests pass on each merged issue branch, on all supported Redmine versions: |
| 5 | 28 | cryptogopher | ## Start in Redmine's directory: |
| 6 | <pre> |
||
| 7 | cd /var/lib/redmine |
||
| 8 | </pre> |
||
| 9 | 34 | cryptogopher | ## (only before 1st run) prepare database (load default data separately, https://www.redmine.org/boards/2/topics/48044): |
| 10 | 27 | cryptogopher | <pre> |
| 11 | 35 | cryptogopher | RAILS_ENV=test bundle exec rake db:drop db:create db:migrate |
| 12 | RAILS_ENV=test bundle exec rake redmine:plugins:migrate NAME=issue_recurring |
||
| 13 | 33 | cryptogopher | RAILS_ENV=test bundle exec rake redmine:load_default_data |
| 14 | </pre> |
||
| 15 | 36 | cryptogopher | ## run tests (migration tests run separately as they are not run within transaction and can leave db in unspecified state when failing): |
| 16 | 19 | cryptogopher | <pre> |
| 17 | 1 | cryptogopher | RAILS_ENV=test bundle exec rake redmine:plugins:test NAME=issue_recurring |
| 18 | 36 | cryptogopher | RAILS_ENV=test bundle exec rake redmine:plugins:test:migration NAME=issue_recurring |
| 19 | 24 | cryptogopher | </pre> |
| 20 | 30 | cryptogopher | ## (optionally) rerun failing tests separately: |
| 21 | 24 | cryptogopher | <pre> |
| 22 | 29 | cryptogopher | RAILS_ENV=test bundle exec ruby plugins/issue_recurring/test/integration/issue_recurrences_test.rb --name test_create_recurrence --verbose |
| 23 | 20 | cryptogopher | </pre> |
| 24 | 11 | cryptogopher | # [[Common_git_operations#Merge-branch-into-master|Merge]] all outstanding branches into master. |
| 25 | # Rerun above tests on @master@ branch if there were: |
||
| 26 | ## multiple branches merged, |
||
| 27 | ## conflicts during merge. |
||
| 28 | 12 | cryptogopher | # Update source:README.md: *Features*, *Changelog* and compatibility list in *Installation* paragraphs. |
| 29 | 1 | cryptogopher | # Bump plugin version number in source:init.rb. |
| 30 | 5 | cryptogopher | # Commit and push changes. |
| 31 | 4 | cryptogopher | # Create and push git tag with new version number: |
| 32 | <pre> |
||
| 33 | $ git tag -a 1.1 |
||
| 34 | $ git push origin 1.1 |
||
| 35 | 1 | cryptogopher | </pre> |
| 36 | 16 | cryptogopher | # Close corresponding issues (if not closed by appropriate commit messages). |
| 37 | 1 | cryptogopher | # Update plugin information on https://redmine.org/plugins/issue-recurring |
| 38 | 14 | cryptogopher | # Add release news on IT https://it.michalczyk.pro/projects/issue-recurring/news |
| 39 | 17 | cryptogopher | # Add new version on IT https://it.michalczyk.pro/projects/issue-recurring/settings/versions |