|
| 1 | +trigger: |
| 2 | + branches: |
| 3 | + include: |
| 4 | + - master |
| 5 | + - develop |
| 6 | + - release/* |
| 7 | + - refs/tags/* |
| 8 | + paths: |
| 9 | + exclude: |
| 10 | + - /*.md |
| 11 | + - .gitignore |
| 12 | + - appveyor.yml |
| 13 | + # waiting for feature to become available |
| 14 | + # tags: |
| 15 | + # include: |
| 16 | + # - v/* |
| 17 | + |
| 18 | +pr: |
| 19 | + branches: |
| 20 | + include: |
| 21 | + - master |
| 22 | + - develop |
| 23 | + - release/* |
| 24 | + autoCancel: true |
| 25 | + |
| 26 | +# add nf-tools repo to resources (for Azure Pipelines templates) |
| 27 | +resources: |
| 28 | + repositories: |
| 29 | + - repository: templates |
| 30 | + type: github |
| 31 | + name: nanoframework/nf-tools |
| 32 | + endpoint: nfbot |
| 33 | + |
| 34 | +pool: |
| 35 | + vmImage: 'VS2017-Win2016' |
| 36 | + |
| 37 | +variables: |
| 38 | + solution: '**/source/*.sln' |
| 39 | + buildPlatform: 'Any CPU' |
| 40 | + buildConfiguration: 'Release' |
| 41 | + nugetPackageName: 'nanoFramework.CoreLibrary' |
| 42 | + repoName: 'lib-CoreLibrary' |
| 43 | + |
| 44 | +steps: |
| 45 | + |
| 46 | +# step from template @ nf-tools repo |
| 47 | +# all build, update and publish steps |
| 48 | +- template: azure-pipelines-templates/class-lib-build.yml@templates |
| 49 | + parameters: |
| 50 | + sourceFileName: 'corlib_native.cpp' |
| 51 | + classLibName: 'CoreLibrary' |
| 52 | + |
| 53 | +# update dependencies |
| 54 | +- task: UpdatenFDependencies@1 |
| 55 | + inputs: |
| 56 | + gitHubToken: $(GitHubToken) |
| 57 | + repositoriesToUpdate: | |
| 58 | + lib-nanoFramework.Devices.OneWire |
| 59 | + lib-nanoFramework.Runtime.Events |
| 60 | + lib-nanoFramework.Runtime.Native |
| 61 | + lib-Windows.Storage.Streams |
| 62 | + lib-Windows.Devices.Adc |
| 63 | + lib-Windows.Devices.I2c |
| 64 | + lib-Windows.Devices.Pwm |
| 65 | + lib-Windows.Devices.Spi |
| 66 | + lib-nanoFramework.Devices.OneWire |
| 67 | + lib-nanoFramework.Networking.Sntp |
| 68 | + lib-nanoFramework.Hardware.Stm32 |
| 69 | + lib-nanoFramework.System.Math |
| 70 | + condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) |
| 71 | + displayName: Update dependent class libs |
| 72 | + |
| 73 | +# step from template @ nf-tools repo |
| 74 | +# report error |
| 75 | +- template: azure-pipelines-templates/discord-webhook-task.yml@templates |
| 76 | + parameters: |
| 77 | + status: 'failure' |
| 78 | + webhookUrl: '$(DiscordWebhook)' |
| 79 | + message: '' |
0 commit comments