Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- Add build steps for Test Framework
  • Loading branch information
josesimoes committed Jun 7, 2021
1 parent 2ed971b commit 5b2355e
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,53 @@ jobs:
repoName: 'CoreLibrary'

steps:

- checkout: self
submodules: true

# step from template @ nf-tools repo
- template: azure-pipelines-templates/install-nuget.yml@templates

- task: DotNetCoreCLI@2
condition: ne(variables['system.pullrequest.isfork'], true)
displayName: Install NBGV tool
inputs:
command: custom
custom: tool
arguments: install -g nbgv

- task: InstallnFBuildComponents@1
condition: ne( variables['StartReleaseCandidate'], true )
displayName: Install nanoFramework MSBuild components

- task: NuGetCommand@2
displayName: NuGet restore Test Adapter
inputs:
restoreSolution: '$(System.DefaultWorkingDirectory)\CoreLibrary\nanoFramework.TestFramework\nanoFramework.TestAdapter.sln'
feedsToUse: config
nugetConfigPath: '$(System.DefaultWorkingDirectory)\CoreLibrary\nanoFramework.TestFramework\NuGet.Config'

- task: NuGetCommand@2
displayName: NuGet restore Test Framework
inputs:
restoreSolution: '$(System.DefaultWorkingDirectory)\CoreLibrary\nanoFramework.TestFramework\nanoFramework.TestFramework.sln'
feedsToUse: config
nugetConfigPath: '$(System.DefaultWorkingDirectory)\CoreLibrary\nanoFramework.TestFramework\NuGet.Config'

- task: VSBuild@1
displayName: Build Test Adapter
inputs:
solution: '$(System.DefaultWorkingDirectory)\CoreLibrary\nanoFramework.TestFramework\nanoFramework.TestAdapter.sln'
platform: '$(buildPlatform)'
msbuildArgs: '/p:PublicRelease=true'
configuration: '$(buildConfiguration)'

- task: VSBuild@1
displayName: Build Test Framework
inputs:
solution: '$(System.DefaultWorkingDirectory)\CoreLibrary\nanoFramework.TestFramework\nanoFramework.TestFramework.sln'
platform: '$(buildPlatform)'
msbuildArgs: '/p:PublicRelease=true'
configuration: '$(buildConfiguration)'

# build steps only
- template: azure-pipelines-templates/class-lib-build-only.yml@templates
Expand Down

0 comments on commit 5b2355e

Please sign in to comment.