1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

Updated CI pipeline to automatically update application version, updated development workflow description in CONTRIBUTING.md

This commit is contained in:
Michael Gordeev
2020-02-04 02:14:47 +03:00
parent 07e2c7d348
commit 92646e4849
2 changed files with 38 additions and 24 deletions
+6 -1
View File
@@ -16,6 +16,7 @@ There are many ways in which you can contribute, beyond writing code. The goal o
- [Contributing to codebase](#contributing-to-codebase) - [Contributing to codebase](#contributing-to-codebase)
- [Build and run project](#build-and-run-project) - [Build and run project](#build-and-run-project)
- [Development workflow](#development-workflow) - [Development workflow](#development-workflow)
- [Release](#release)
- [Coding guidelines](#coding-guidelines) - [Coding guidelines](#coding-guidelines)
- [Indentation](#indentation) - [Indentation](#indentation)
- [Names](#names) - [Names](#names)
@@ -101,7 +102,11 @@ This section represents how contributors should interact with codebase implement
3. Making changes to codebase 3. Making changes to codebase
4. Updating [changelog.md](changelog.md) 4. Updating [changelog.md](changelog.md)
5. Creating a pull request to `master` 5. Creating a pull request to `master`
6. Done! 6. Validating PR with CI build
7. Completing PR
8. Done
#### Release
Next stage is release. Release performs on every push to master (which makes functional changes to application source code). Release performs via Azure Pipelines and triggers manually by pipeline owner ([@xfox111](https://github.com/xfox111)).
### Coding guidelines ### Coding guidelines
#### Indentation #### Indentation
+9
View File
@@ -29,6 +29,15 @@ steps:
failBuildLevelSelector: 'Error' failBuildLevelSelector: 'Error'
failBuildOnCodeIssues: false failBuildOnCodeIssues: false
- task: PowerShell@2
displayName: 'Update version number'
inputs:
targetType: 'inline'
script: |
(Get-Content AndroidManifest.xml -encoding UTF8 | Out-String) -replace '(?<=\bandroid:versionCode=")[^"]*', $(Build.BuildId) | set-content AndroidManifest.xml -encoding UTF8
(Get-Content AndroidManifest.xml -encoding UTF8 | Out-String) -replace '(?<=\bandroid:versionName=")[^"]*', $(Build.BuildNumber) | set-content AndroidManifest.xml -encoding UTF8
workingDirectory: '$(Build.SourcesDirectory)\GUT.Schedule\GUT.Schedule\Properties'
- task: XamarinAndroid@1 - task: XamarinAndroid@1
displayName: 'Build Solution (AppBundle)' displayName: 'Build Solution (AppBundle)'
inputs: inputs: