This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a952edb
commit 912836c
Showing
8 changed files
with
351 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
next-version: 1.0.0 | ||
assembly-versioning-scheme: MajorMinorPatch | ||
build-metadata-padding: 3 | ||
legacy-semver-padding: 3 | ||
assembly-informational-format: '{LegacySemVerPadded}' | ||
major-version-bump-message: '\+semver:\s?(breaking|major)' | ||
minor-version-bump-message: '\+semver:\s?(feature|minor)' | ||
patch-version-bump-message: '\+semver:\s?(fix|patch)' | ||
commit-message-incrementing: MergeMessageOnly | ||
branches: | ||
master: | ||
mode: ContinuousDelivery | ||
tag: | ||
increment: Patch | ||
prevent-increment-of-merged-branch-version: true | ||
track-merge-target: false | ||
develop: | ||
mode: ContinuousDeployment | ||
tag: preview | ||
increment: Minor | ||
prevent-increment-of-merged-branch-version: false | ||
track-merge-target: true | ||
release: | ||
tag: rc | ||
(pull|pull\-requests|pr)[/-]: | ||
tag: alpha | ||
ignore: | ||
sha: [] |
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,30 +1,302 @@ | ||
version: 1.0.{build} | ||
pull_requests: | ||
do_not_increment_build_number: true | ||
image: Visual Studio 2017 | ||
clone_depth: 1 | ||
install: | ||
- ps: .\install-vsix-appveyor.ps1 | ||
build_script: | ||
- ps: >- | ||
nuget restore source\nanoFramework.Windows.Devices.Spi.sln | ||
msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | ||
artifacts: | ||
- path: '**\bin\Release\*.nupkg' | ||
name: Nuget Packages | ||
deploy: | ||
- provider: NuGet | ||
api_key: | ||
secure: NSRDXbS8tmzOy4wStGuO3yQMKI8Sk10vF8iQtz9ZDXEnHfwnuDdnXbr/Kno3MMvY | ||
skip_symbols: true | ||
notifications: | ||
- provider: Slack | ||
auth_token: | ||
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU= | ||
channel: '#build-monitor' | ||
on_build_status_changed: true | ||
on_build_success: false | ||
on_build_failure: false | ||
# configuration for "master" branch | ||
- | ||
branches: | ||
only: | ||
- master | ||
|
||
image: Visual Studio 2017 | ||
|
||
skip_branch_with_pr: true | ||
|
||
# Skipping commits affecting specific files | ||
skip_commits: | ||
files: | ||
- '**\AssemblyInfo.*' | ||
- '**/*.md' | ||
- 'LICENSE' | ||
- dir/* | ||
- '.gitignore' | ||
|
||
build: | ||
verbosity: minimal | ||
|
||
test: off | ||
|
||
environment: | ||
APPVEYOR_SAVE_CACHE_ON_ERROR: true | ||
matrix: | ||
- RUBY_VERSION: 24 | ||
GitHubUserName: | ||
secure: 7OBtVAMTodMWK20wg6pGnQ== | ||
GitHubUserEmail: | ||
secure: HeABB68Sn/Lhbd69C2cUcfWv0ab/rMDEcOLvcxf8gGw= | ||
GitHubToken: | ||
secure: WOqlCsnwTzfDPJFoNV/h8mEESIpG/9uFn1u6oE8hGZtXwIQQlsY+NyyLt9Y5xoFn | ||
|
||
init: | ||
- git config --global core.autocrlf true | ||
- git config --global credential.helper store | ||
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):x-oauth-basic@github.com`n" | ||
- git config --global user.email "%GitHubUserEmail%" | ||
- git config --global user.name "%GitHubUserName%" | ||
|
||
install: | ||
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH% | ||
- gem install github_changelog_generator --quiet --no-ri --no-rdoc | ||
# - bundle install | ||
- choco install gitversion.portable -pre -y | ||
- ps: .\install-vsix-appveyor.ps1 | ||
|
||
before_build: | ||
- ps: >- | ||
nuget restore source\nanoFramework.Windows.Devices.Spi.sln | ||
gitversion /l console /output buildserver /updateAssemblyInfo /ensureassemblyinfo | ||
build_script: | ||
- ps: >- | ||
msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | ||
before_deploy: | ||
# need this to keep ruby happy | ||
- ps: md c:\tmp | ||
- bundle exec github_changelog_generator --token %GitHubToken% | ||
# add here the updated changelog and the updated assembly info files | ||
- git add . | ||
- git commit --amend --no-edit | ||
|
||
artifacts: | ||
- path: '**\bin\Release\*.nupkg' | ||
name: Nuget_Packages | ||
|
||
deploy: | ||
- provider: NuGet | ||
api_key: | ||
secure: NSRDXbS8tmzOy4wStGuO3yQMKI8Sk10vF8iQtz9ZDXEnHfwnuDdnXbr/Kno3MMvY | ||
skip_symbols: true | ||
on: | ||
appveyor_repo_tag: true | ||
- provider: GitHub | ||
tag: v$(GitVersion_NuGetVersionV2) | ||
release: nanoFramework Core Library v$(gitversion_semver) | ||
description: '[CHANGELOG.md](https://github.com/nanoframework/lib-nanoFramework.Windows.Devices.Spi/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Spi/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)' | ||
auth_token: | ||
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S | ||
artifact: Nuget_Packages | ||
draft: true | ||
prerelease: true | ||
force_update: true | ||
|
||
notifications: | ||
- provider: Slack | ||
auth_token: | ||
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU= | ||
channel: '#build-monitor' | ||
on_build_status_changed: true | ||
on_build_success: false | ||
on_build_failure: false | ||
|
||
cache: | ||
- source\packages -> **source\packages.config | ||
- C:\ProgramData\chocolatey\bin -> appveyor.yml | ||
- C:\ProgramData\chocolatey\lib -> appveyor.yml | ||
|
||
|
||
#################################### | ||
# configuration for develop branches | ||
- | ||
branches: | ||
only: | ||
- /dev.*/ | ||
|
||
image: Visual Studio 2017 | ||
|
||
skip_branch_with_pr: true | ||
|
||
# Do not build on tags | ||
skip_tags: false | ||
|
||
test: off | ||
|
||
pull_requests: | ||
do_not_increment_build_number: true | ||
|
||
# Skipping commits affecting specific files | ||
skip_commits: | ||
files: | ||
- '**\AssemblyInfo.*' | ||
- '**/*.md' | ||
- 'LICENSE' | ||
- dir/* | ||
- '.gitignore' | ||
|
||
build: | ||
verbosity: minimal | ||
|
||
install: | ||
- choco install gitversion.portable -pre -y | ||
- ps: .\install-vsix-appveyor.ps1 | ||
|
||
before_build: | ||
- ps: >- | ||
nuget restore source\nanoFramework.Windows.Devices.Spi.sln | ||
gitversion /l console /output buildserver /updateAssemblyInfo /ensureassemblyinfo | ||
build_script: | ||
- ps: >- | ||
msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | ||
on_success: | ||
# for this environment variable to work here it has to be set in AppVeyor UI | ||
- nuget push source\Nuget.Windows.Devices.Spi\bin\Release\nanoFramework.Windows.Devices.Spi.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package | ||
- nuget push source\Nuget.Windows.Devices.Spi.DELIVERABLES\bin\Release\nanoFramework.Windows.Devices.Spi.DELIVERABLES.%GitVersion_NuGetVersionV2%.nupkg %MyGetToken% -Source https://www.myget.org/F/nanoframework-dev/api/v2/package | ||
|
||
artifacts: | ||
- path: '**\bin\Release\*.nupkg' | ||
name: Nuget_Packages | ||
|
||
deploy: | ||
# the provider is actually MyGet but works the same as NuGet | ||
- provider: NuGet | ||
server: https://www.myget.org/F/nanoframework-dev/api/v2/package | ||
api_key: | ||
secure: 0drE56FivPFYI3oVZWcVFTpjOXSqyjT6kGangIxFRcRLqMhV3lQHqUButuuiPM+N | ||
skip_symbols: true | ||
- provider: GitHub | ||
tag: v$(GitVersion_NuGetVersionV2) | ||
release: nanoFramework Core Library v$(gitversion_semver) | ||
description: '[CHANGELOG.md](https://github.com/nanoframework/lib-Windows.Devices.Spi/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Spi/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)' | ||
auth_token: | ||
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S | ||
artifact: Nuget_Packages | ||
draft: true | ||
prerelease: true | ||
force_update: true | ||
|
||
notifications: | ||
- provider: Slack | ||
auth_token: | ||
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU= | ||
channel: '#build-monitor' | ||
on_build_status_changed: true | ||
on_build_success: false | ||
on_build_failure: false | ||
|
||
cache: | ||
- source\packages -> **source\packages.config | ||
- C:\ProgramData\chocolatey\bin -> appveyor.yml | ||
- C:\ProgramData\chocolatey\lib -> appveyor.yml | ||
|
||
############################################ | ||
# configuration for release candidate branch | ||
- | ||
branches: | ||
only: | ||
- release.* | ||
|
||
image: Visual Studio 2017 | ||
|
||
skip_branch_with_pr: true | ||
|
||
# OK to get only last commit as we don't need history | ||
clone_depth: 1 | ||
|
||
# Skipping commits affecting specific files | ||
skip_commits: | ||
files: | ||
- '**\AssemblyInfo.*' | ||
- '**/*.md' | ||
- 'LICENSE' | ||
- dir/* | ||
- '.gitignore' | ||
|
||
build: | ||
verbosity: minimal | ||
|
||
test: off | ||
|
||
environment: | ||
matrix: | ||
- RUBY_VERSION: 24 | ||
GitHubUserName: | ||
secure: 7OBtVAMTodMWK20wg6pGnQ== | ||
GitHubUserEmail: | ||
secure: HeABB68Sn/Lhbd69C2cUcfWv0ab/rMDEcOLvcxf8gGw= | ||
GitHubToken: | ||
secure: WOqlCsnwTzfDPJFoNV/h8mEESIpG/9uFn1u6oE8hGZtXwIQQlsY+NyyLt9Y5xoFn | ||
|
||
init: | ||
- git config --global core.autocrlf true | ||
- git config --global credential.helper store | ||
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:GitHubToken):x-oauth-basic@github.com`n" | ||
- git config --global user.email "%GitHubUserEmail%" | ||
- git config --global user.name "%GitHubUserName%" | ||
|
||
install: | ||
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH% | ||
- bundle config --local path vendor/bundle | ||
- gem install bundler --quiet --no-ri --no-rdoc | ||
- gem install github_changelog_generator --quiet --no-ri --no-rdoc | ||
# - bundle install | ||
- choco install gitversion.portable -pre -y | ||
- ps: .\install-vsix-appveyor.ps1 | ||
|
||
before_build: | ||
- ps: >- | ||
nuget restore source\nanoFramework.Windows.Devices.Spi.sln | ||
gitversion /l console /output buildserver /updateAssemblyInfo /ensureassemblyinfo | ||
build_script: | ||
- ps: >- | ||
msbuild source\nanoFramework.Windows.Devices.Spi.sln /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" | ||
before_deploy: | ||
# need this to keep ruby happy | ||
- ps: md c:\tmp | ||
- bundle exec github_changelog_generator --token %GitHubToken% | ||
# add here the updated changelog and the updated assembly info files | ||
- git add . | ||
- git commit --amend --no-edit | ||
|
||
artifacts: | ||
- path: '**\bin\Release\*.nupkg' | ||
name: Nuget_Packages | ||
|
||
deploy: | ||
- provider: NuGet | ||
api_key: | ||
secure: NSRDXbS8tmzOy4wStGuO3yQMKI8Sk10vF8iQtz9ZDXEnHfwnuDdnXbr/Kno3MMvY | ||
skip_symbols: true | ||
|
||
- provider: GitHub | ||
tag: v$(GitVersion_NuGetVersionV2) | ||
release: nanoFramework Core Library v$(gitversion_semver) | ||
description: '[CHANGELOG.md](https://github.com/nanoframework/lib-Windows.Devices.Spi/blob/master/CHANGELOG.md)\n\n## Install from NuGet\n\nThe following NuGet packages are available for download from this release\n\n:package: [.NET](https://www.nuget.org/packages/nanoFramework.Windows.Devices.Spi/$(GitVersion_NuGetVersionV2)) v$(GitVersion_NuGetVersionV2)' | ||
auth_token: | ||
secure: DNixoFFE+pGlwyhj7McfZoln42vOmj0iY1iNV9zXEr3y0NpXlOIgL8k5ehzlFM1S | ||
artifact: Nuget_Packages | ||
draft: true | ||
prerelease: true | ||
force_update: true | ||
|
||
notifications: | ||
- provider: Slack | ||
auth_token: | ||
secure: 2tqAJTTbN2dm24Vrwo5TXun3Vxc34R5G9l7o3pK3xEuKZAzxx3nbP2yGkMI/kl3+NxHXknjBfZnkhZC5eLYBHb+jO7YVUZwPYOfC/ZGy5HU= | ||
channel: '#build-monitor' | ||
on_build_status_changed: true | ||
on_build_success: false | ||
on_build_failure: false | ||
|
||
cache: | ||
- source\packages -> **source\packages.config | ||
- C:\ProgramData\chocolatey\bin -> appveyor.yml | ||
- C:\ProgramData\chocolatey\lib -> appveyor.yml |
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
Oops, something went wrong.