Commit graph

605 commits

Author SHA1 Message Date
bom
21e941cce0 Import GitApi from correct module 2023-03-02 16:26:52 +01:00
874106e1d4 Disable test_release_mixin 2023-03-02 16:18:07 +01:00
63d3823d87 Implement release class test 2023-03-02 16:18:07 +01:00
8eb510d034 Base bump version on release version 2023-03-02 16:18:07 +01:00
99877b3fbf Implement git init
Allows creation of new git repo, may be of use in tests.
2023-03-02 16:18:07 +01:00
0d36a8a66a Fix service test and cleanup services
We now create a temporary git repository that creates a release commit.
Remove whitespaces, unused imports.
2023-03-02 16:17:28 +01:00
9dc32ac92f Refactor Class Name 2023-03-02 16:13:16 +01:00
455585f78c Remove Config class
If the config class was to replace the config dict,
further refactorings upstream would be needed.
This is out of scope.
2023-03-02 16:13:16 +01:00
5700b42098 Remove redundant method 2023-03-02 16:13:16 +01:00
bom
8855a2c6b6 Remove unused imports 2023-03-02 15:08:41 +01:00
bom
24e8f65aaf Remove run_test line
Will not be implemented, as it is already run in CI beforehand
2023-03-02 15:07:31 +01:00
bom
9c9676b5b8 Pass Release instead of Version object 2023-03-02 15:04:30 +01:00
bom
28344667db Remove unused fields from ReleaseMixin
These are handled through repos and services instead
2023-03-02 15:03:11 +01:00
bom
338cafc211 Validate correct branch in Release object
Avoids throwing exceptions in service and delegates validation to the
domain level
2023-03-02 14:59:06 +01:00
9bde301ee4 Use release class
Create it out of the given release_repo.
Thus simplifying the call tree as we only access the release_repo in the
service.
2023-02-28 15:04:14 +01:00
39d60f6854 WIP Remove prepare release service 2023-02-28 14:55:51 +01:00
802dd7d57b WIP Remove prepare release service 2023-02-28 14:55:41 +01:00
bom
ef51db1403 Fix some of the tests 2023-02-28 13:25:47 +01:00
ce24ab6fc2 wip 2023-02-28 09:32:26 +01:00
54e3f7f41a make devopsBuild ddd 2023-02-25 15:59:41 +01:00
975de636ed mob 2023-02-24 11:39:38 +01:00
bom
c6ef13ca7c mob 2023-02-24 11:02:11 +01:00
a09eaa7521 mob 2023-02-24 10:46:43 +01:00
bom
0551fe6bfe mob 2023-02-24 10:31:04 +01:00
74925a90b7 mob 2023-02-24 10:14:26 +01:00
4f499bd1f4 ignore target 2023-02-24 10:00:11 +01:00
bom
0cdf4b4c9c Update files for in project release testing
1. commit anything and include one release type
2. run `pyb release` in project root
3. check that release commit and version bump commit were added
4. reset with `git reset origin/main`
2023-02-23 16:34:22 +01:00
bom
b93772d3a1 Fix naming and arguments in release_mixin 2023-02-23 16:31:33 +01:00
bom
a109759c68 Return stdout from git_repository functions 2023-02-23 16:30:43 +01:00
bom
4a23b0b800 Implement and use TagAndPushReleaseService 2023-02-23 15:33:34 +01:00
bom
e7152301dd Add utility functions to git_repository 2023-02-23 15:33:00 +01:00
bom
fa6beebc4e Move commit logic to prepare_release_service 2023-02-23 15:15:29 +01:00
bom
c58ddf70da Compact updating config into one call 2023-02-23 14:40:10 +01:00
bom
1ce4bd9c55 Remove release_type as requirement for Version
Require it in functions that actually use it instead
2023-02-23 14:38:54 +01:00
bom
992c72bda3 Give 'file' a more descriptive name 2023-02-23 14:23:32 +01:00
bom
0df4db54d8 Copy the version list when creating new Version 2023-02-23 14:16:17 +01:00
2fe05b0e06 Use deep copy of release_version object
Release version is modified again, when calling create_bump_version on it.
2023-02-22 16:25:18 +01:00
fa73c52fe2 Remove asterisk on destructured args
Otherwise we would create a tuple containing
a tuple of arguments and an empty tuple.
2023-02-22 16:23:03 +01:00
c91bbe787b Create string from return value
stdout returns a list of strings.
This needed to be handled.
2023-02-22 16:20:46 +01:00
d759036989 Create realistic test conditions 2023-02-22 16:19:36 +01:00
99b8884d11 WIP implement prepare release service 2023-02-22 15:15:56 +01:00
294d664bb8 WIP Add test for release_mixin 2023-02-22 15:15:23 +01:00
d22dbbf050 Add import, remove return 2023-02-22 15:14:48 +01:00
1e2593e358 No settings in repo 2023-02-22 14:12:54 +01:00
0d0bde4b9e Remove whitespaces 2023-02-22 14:12:03 +01:00
7d7347653e Update release_mixin methods 2023-02-22 14:11:39 +01:00
a07c23434e Implement tag_annotated and bugfix 2023-02-22 14:10:53 +01:00
03f8507968 Setup build.py 2023-02-22 14:10:19 +01:00
bom
238b0304b6 Implement prepare for ReleaseMixin 2023-02-22 12:05:34 +01:00
bom
2d8ca4ecdd Fix test_services 2023-02-22 12:05:02 +01:00