2018-02-20 16:39:29 +03:00
|
|
|
version: '2.1.0-{branch}-{build}'
|
2017-10-09 19:15:35 +03:00
|
|
|
init:
|
|
|
|
- git config --global core.autocrlf true
|
|
|
|
image: Visual Studio 2017
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- dev
|
2018-04-02 18:43:45 +03:00
|
|
|
- /^update[0-9]{2}x/
|
2017-10-09 19:15:35 +03:00
|
|
|
install:
|
2018-04-02 18:43:45 +03:00
|
|
|
- git clone https://github.com/SteeltoeOSS/steeltoe-ci.git -v
|
|
|
|
- ps: steeltoe-ci\scripts\appveyor_install.ps1
|
2017-10-09 19:15:35 +03:00
|
|
|
test_script:
|
2018-04-02 18:43:45 +03:00
|
|
|
- ps: steeltoe-ci\scripts\appveyor_tests.ps1
|
2017-10-09 19:15:35 +03:00
|
|
|
build_script:
|
2018-04-02 18:43:45 +03:00
|
|
|
- ps: steeltoe-ci\scripts\appveyor_build.ps1
|
2017-10-09 19:15:35 +03:00
|
|
|
artifacts:
|
2018-04-02 18:43:45 +03:00
|
|
|
- path: '**\*.nupkg'
|
|
|
|
environment:
|
|
|
|
PackageReferencesToUpdate: SteeltoeCommonVersion
|
|
|
|
github_access_token:
|
|
|
|
secure: ko4J3M/czguVI9AbVdkv5qZuj3Wuzts5nkz/6cypneFkQGWJXDs8Akg7xOEMu8qU
|
2017-10-09 19:15:35 +03:00
|
|
|
deploy:
|
|
|
|
- provider: NuGet
|
|
|
|
skip_symbols: false
|
|
|
|
artifact: /.*\.nupkg/
|
|
|
|
server: https://www.myget.org/F/steeltoedev/api/v2/package
|
2018-04-02 18:43:45 +03:00
|
|
|
symbol_server: https://www.myget.org/F/steeltoedev/symbols/api/v2/package
|
2017-10-09 19:15:35 +03:00
|
|
|
api_key:
|
|
|
|
secure: 246ApObnMYYvzDo9Ki72CxxuKfuoqYbrbUK2HLevGIGHXYY6f0OkAdE3EWCwNJ7g
|
|
|
|
on:
|
|
|
|
branch: dev
|
|
|
|
appveyor_repo_tag: false
|
|
|
|
- provider: NuGet
|
2018-04-02 18:43:45 +03:00
|
|
|
skip_symbols: false
|
2017-10-09 19:15:35 +03:00
|
|
|
artifact: /.*\.nupkg/
|
2018-04-02 18:43:45 +03:00
|
|
|
server: https://www.myget.org/F/steeltoemaster/api/v2/package
|
|
|
|
symbol_server: https://www.myget.org/F/steeltoemaster/symbols/api/v2/package
|
2017-10-09 19:15:35 +03:00
|
|
|
api_key:
|
2018-04-02 18:43:45 +03:00
|
|
|
secure: 246ApObnMYYvzDo9Ki72CxxuKfuoqYbrbUK2HLevGIGHXYY6f0OkAdE3EWCwNJ7g
|
2017-10-09 19:15:35 +03:00
|
|
|
on:
|
|
|
|
branch: master
|
2018-04-02 18:43:45 +03:00
|
|
|
appveyor_repo_tag: false
|
2017-10-09 19:15:35 +03:00
|
|
|
- provider: NuGet
|
|
|
|
skip_symbols: true
|
|
|
|
artifact: /.*\.nupkg/
|
2018-04-02 18:43:45 +03:00
|
|
|
server: https://www.myget.org/F/steeltoestaging/api/v2/package
|
|
|
|
symbol_server: https://www.myget.org/F/steeltoestaging/symbols/api/v2/package
|
2017-10-09 19:15:35 +03:00
|
|
|
api_key:
|
|
|
|
secure: 246ApObnMYYvzDo9Ki72CxxuKfuoqYbrbUK2HLevGIGHXYY6f0OkAdE3EWCwNJ7g
|
|
|
|
on:
|
2018-04-02 18:43:45 +03:00
|
|
|
branch: /^update[0-9]{2}x/
|
2017-10-09 19:15:35 +03:00
|
|
|
appveyor_repo_tag: false
|
2018-04-02 18:43:45 +03:00
|
|
|
after_deploy:
|
|
|
|
- git config --global credential.helper store
|
|
|
|
- ps: Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:github_access_token):x-oauth-basic@github.com`n"
|
|
|
|
- git config --global user.email "steeltoe@pivotal.io"
|
|
|
|
- git config --global user.name "SteeltoeCI"
|
|
|
|
- ps: steeltoe-ci\scripts\update_downstream_props.ps1
|