-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge new-folder-structure-2 into master and !publish
* Refactored Folder Structure * Update PSTelegramAPI.Module.Tests.ps1 * Update task Test * Changed filename for test/coverage results * Update to CodeCoverage format * Update PSTelegramAPI.build.ps1 * Update RequiredModules.psd1 * Update PSTelegramAPI.build.ps1 * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Increased ModuleVersion * Delete bootstrap.ps1 * Merged RequiredModules.psd1 * Fixed UpdateManifest task * Added UpdateManifest task * Updated ModuleVersion * Update README.md * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update README.md * Added !publish requirement to publish to gallery. * Update PSTelegramAPI.build.ps1 * Update PSTelegramAPI.build.ps1 * Update PSTelegramAPI.build.ps1 * Update PSTelegramAPI.bootstrap.ps1 * Update README.md
- Loading branch information
1 parent
3c06b24
commit b8dc5c8
Showing
20 changed files
with
112 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
*.dat | ||
output/ | ||
output/ | ||
testresults/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
[![Build status](https://mkellerman.visualstudio.com/PSTelegramAPI/_apis/build/status/PSTelegramAPI-CI)](https://mkellerman.visualstudio.com/PSTelegramAPI/_build/latest?definitionId=3) | ||
|
||
# PSTelegramAPI | ||
|
||
PowerShell Module for Telegram APIs | ||
|
||
# References | ||
|
||
References: | ||
https://github.com/mkellerman/TLSharp | ||
https://stefanstranger.github.io/2018/12/30/UseAzurePipelinesToPublishPowerShellModule/ | ||
<https://github.com/sochix/TLSharp> : Telegram client library implemented in C# |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,40 @@ | ||
|
||
# Docs: https://aka.ms/yaml | ||
name: $(Build.DefinitionName)_$(Date:yyyyMMdd)) | ||
resources: | ||
- repo: self | ||
clean: true | ||
|
||
name: $(Build.DefinitionName)_$(Date:yyyyMMdd) | ||
pr: | ||
- master | ||
branches: | ||
include: | ||
- master | ||
paths: | ||
include: | ||
- PSTelegram/* | ||
|
||
queue: | ||
name: Hosted VS2017 | ||
|
||
steps: | ||
- powershell: .\bootstrap.ps1 | ||
displayName: 'Initialize Environment' | ||
|
||
- powershell: Invoke-Build -Configuration 'Production' -Task Clean, CopyModuleFiles | ||
displayName: 'Build PowerShell Module' | ||
- powershell: './PSTelegramAPI.bootstrap.ps1' | ||
displayName: 'Invoke Bootstrap' | ||
|
||
- task: richardfennellBM.BM-VSTS-PesterRunner-Task.Pester-Task.Pester@8 | ||
displayName: 'Pester Test Runner' | ||
inputs: | ||
scriptFolder: '$(System.DefaultWorkingDirectory)\tests\*' | ||
additionalModulePath: '$(System.DefaultWorkingDirectory)\output' | ||
CodeCoverageFolder: '$(System.DefaultWorkingDirectory)\output' | ||
resultsFile: '$(Common.TestResultsDirectory)\Test-$(Build.DefinitionName)_$(Build.BuildNumber).xml' | ||
CodeCoverageOutputFile: '$(Common.TestResultsDirectory)\Coverage-$(Build.DefinitionName)_$(Build.BuildNumber).xml' | ||
- powershell: 'Invoke-Build -Configuration Production -Task Test' | ||
displayName: 'Invoke Pester Tests' | ||
|
||
- task: PublishTestResults@2 | ||
displayName: 'Publish Test Results' | ||
condition: always() | ||
inputs: | ||
testRunner: NUnit | ||
searchFolder: '$(Common.TestResultsDirectory)' | ||
testResultsFormat: NUnit | ||
testResultsFiles: 'TestResults-*.xml' | ||
searchFolder: '$(System.DefaultWorkingDirectory)/TestResults' | ||
|
||
- task: PublishCodeCoverageResults@1 | ||
displayName: 'Publish Code Coverage' | ||
inputs: | ||
summaryFileLocation: '$(Common.TestResultsDirectory)\Coverage-$(Build.DefinitionName)_$(Build.BuildNumber).xml' | ||
|
||
- powershell: Invoke-Build -Configuration 'Production' -Task PublishModule | ||
displayName: 'Publish PowerShell Module' | ||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/TestResults/CodeCoverage-*.xml' | ||
reportDirectory: '$(System.DefaultWorkingDirectory)/TestResults' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
displayName: 'Publish Build Artifacts' | ||
displayName: 'Publish Artifact: PSTelegramAPI' | ||
inputs: | ||
ArtifactName: Module | ||
PathtoPublish: '$(System.DefaultWorkingDirectory)\output' | ||
PathtoPublish: '$(System.DefaultWorkingDirectory)/PSTelegramAPI' | ||
ArtifactName: PSTelegramAPI | ||
|
||
- powershell: 'Invoke-Build -Configuration Production -Task UpdateManifest, PublishModule' | ||
displayName: 'Publish PowerShell Module' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters