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

Parser improvements and fixes, Tests (#23)

* Added unit tests, fixed and improved parser

* Updated translation files

* Updated unit tests to work with credentials

* Updated validation CI config

* Updated changelogs, improved CI/CD processes
This commit is contained in:
Michael Gordeev
2020-04-20 17:51:42 +03:00
committed by GitHub
parent 8579f9bbc6
commit a07cb6fd3e
20 changed files with 267 additions and 36 deletions
+6 -5
View File
@@ -8,7 +8,8 @@ trigger:
exclude:
- '*'
include:
- changelogs/android.xml
- changelogs/appMetadata/en/changelogs/*
- changelogs/appMetadata/ru/changelogs/*
pool:
vmImage: 'windows-latest'
@@ -33,6 +34,8 @@ steps:
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
Rename-Item '$(Build.SourcesDirectory)/changelogs/appMetadata/en/changelogs/android-changelog.txt' '$(Build.BuildId).txt'
Rename-Item '$(Build.SourcesDirectory)/changelogs/appMetadata/ru/changelogs/android-changelog.txt' '$(Build.BuildId).txt'
workingDirectory: '$(Build.SourcesDirectory)\GUT.Schedule\GUTSchedule.Droid\Properties'
- task: XamarinAndroid@1
@@ -68,10 +71,8 @@ steps:
displayName: 'Copy changelog to output'
inputs:
SourceFolder: '$(Build.SourcesDirectory)/changelogs'
Contents: |
android.xml
github.md
TargetFolder: '$(outputDirectory)'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)/changelogs'
- task: PowerShell@2
displayName: 'Update package name'