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
+29 -24
View File
@@ -5,29 +5,30 @@ There are many ways in which you can contribute, beyond writing code. The goal o
## Table of Contents ## Table of Contents
- [GUTSchedule Contribution Guidelines](#gutschedule-contribution-guidelines) - [GUTSchedule Contribution Guidelines](#gutschedule-contribution-guidelines)
- [Table of Contents](#table-of-contents) - [Table of Contents](#table-of-contents)
- [Asking Questions](#asking-questions) - [Asking Questions](#asking-questions)
- [Providing Feedback](#providing-feedback) - [Providing Feedback](#providing-feedback)
- [Reporting Issues](#reporting-issues) - [Reporting Issues](#reporting-issues)
- [Look For an Existing Issue](#look-for-an-existing-issue) - [Look For an Existing Issue](#look-for-an-existing-issue)
- [Writing Good Bug Reports and Feature Requests](#writing-good-bug-reports-and-feature-requests) - [Writing Good Bug Reports and Feature Requests](#writing-good-bug-reports-and-feature-requests)
- [Final Checklist](#final-checklist) - [Final Checklist](#final-checklist)
- [Follow Your Issue](#follow-your-issue) - [Follow Your Issue](#follow-your-issue)
- [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)
- [Coding guidelines](#coding-guidelines) - [Release](#release)
- [Indentation](#indentation) - [Coding guidelines](#coding-guidelines)
- [Names](#names) - [Indentation](#indentation)
- [Comments](#comments) - [Names](#names)
- [Strings](#strings) - [Comments](#comments)
- [Style](#style) - [Strings](#strings)
- [Finding an issue to work on](#finding-an-issue-to-work-on) - [Style](#style)
- [Contributing to translations](#contributing-to-translations) - [Finding an issue to work on](#finding-an-issue-to-work-on)
- [Submitting pull requests](#submitting-pull-requests) - [Contributing to translations](#contributing-to-translations)
- [Spell check errors](#spell-check-errors) - [Submitting pull requests](#submitting-pull-requests)
- [Thank You!](#thank-you) - [Spell check errors](#spell-check-errors)
- [Attribution](#attribution) - [Thank You!](#thank-you)
- [Attribution](#attribution)
## Asking Questions ## Asking Questions
Have a question? Rather than opening an issue, please ask me directly on opensource@xfox111.net. Have a question? Rather than opening an issue, please ask me directly on opensource@xfox111.net.
@@ -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: