|
1 | 1 | #version should be only changed with RELEASE eminent, see RELEASE.md |
2 | 2 |
|
3 | 3 | version: 2.8.0-ci-{build} |
4 | | -image: |
5 | | - - Visual Studio 2019 |
6 | | - - ubuntu1804 |
| 4 | + |
| 5 | +image: Visual Studio 2019 |
7 | 6 |
|
8 | 7 | clone_depth: 1 |
9 | 8 | pull_requests: |
10 | | - do_not_increment_build_number: false |
| 9 | + do_not_increment_build_number: true |
11 | 10 |
|
12 | 11 | init: |
13 | 12 | - ps: | |
14 | 13 | git config --global core.autocrlf input |
15 | | - $env:CAN_PUBLISH = $true |
| 14 | + |
16 | 15 | if ($env:APPVEYOR_REPO_TAG -eq "true") { |
17 | 16 | $ver = $env:APPVEYOR_REPO_TAG_NAME |
18 | 17 | if($ver.StartsWith("v") -eq $true) { $ver = $ver.Substring(1) } |
19 | | - try |
20 | | - { |
21 | | - Update-AppveyorBuild -Version $ver |
22 | | - } |
23 | | - catch |
24 | | - { |
25 | | - Write-Output "Update-AppveyorBuild Fail to change version to TAG: '$env:APPVEYOR_REPO_TAG_NAME'" -ForegroundColor Red |
26 | | - Write-Output "Exception Error: $PSItem.Exception.Message" -ForegroundColor Red |
27 | | - $env:CAN_PUBLISH = $false |
28 | | - } |
| 18 | + Update-AppveyorBuild -Version $ver |
29 | 19 | } |
30 | 20 |
|
31 | | - - ps: | |
32 | | - if( $ver -match '^\d+\.\d+\.\d+$') { |
33 | | - $env:IS_RELEASE = $true |
34 | | - } else { |
35 | | - $env:IS_RELEASE = $false } |
36 | | -
|
37 | | - - ps: | |
38 | | - Write-Host "APPVEYOR_BUILD_VERSION='$env:APPVEYOR_BUILD_VERSION'" -ForegroundColor Yellow |
39 | | - Write-Host "APPVEYOR_REPO_TAG_NAME= '$env:APPVEYOR_REPO_TAG_NAME'" -ForegroundColor Yellow |
40 | | -
|
41 | | -skip_commits: |
42 | | - files: |
43 | | - - docs/* |
44 | | - - art/* |
45 | | - - '**/*.md' |
46 | | - - .gitignore |
47 | | - - .editorconfig |
48 | | - message: /updated readme.*|update readme.*s|update docs.*|update version.*|update changelog.*/ |
49 | | - |
50 | 21 | environment: |
51 | 22 | matrix: |
52 | 23 | - BUILD_TARGET: base |
53 | 24 | - BUILD_TARGET: fsharp |
54 | 25 |
|
55 | 26 | build_script: |
56 | 27 | - cmd: dotnet build src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET% |
57 | | -- sh: dotnet build src/CommandLine/ -c Release --version-suffix $APPVEYOR_BUILD_VERSION /p:BuildTarget=$BUILD_TARGET |
58 | 28 |
|
59 | 29 | test_script: |
60 | 30 | - cmd: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=%BUILD_TARGET% |
61 | | -- sh: dotnet test tests/CommandLine.Tests/ /p:BuildTarget=$BUILD_TARGET -f netcoreapp2.0 |
62 | 31 |
|
63 | 32 | after_test: |
64 | 33 | - cmd: dotnet pack src/CommandLine/ -c Release --version-suffix %APPVEYOR_BUILD_VERSION% /p:BuildTarget=%BUILD_TARGET% |
65 | | -- sh: dotnet pack src/CommandLine/ -c Release --version-suffix $APPVEYOR_BUILD_VERSION /p:BuildTarget=$BUILD_TARGET |
66 | 34 |
|
67 | 35 | artifacts: |
68 | 36 | - path: 'src/CommandLine/bin/Release/*.nupkg' |
69 | 37 | name: NuGetPackages |
70 | 38 | - path: 'src/CommandLine/bin/Release/*.snupkg' |
71 | | - name: symbol |
| 39 | + name: symbol |
| 40 | + |
72 | 41 | on_failure: |
73 | 42 | - cmd: | |
74 | 43 | tree /f /a >files.lst |
75 | 44 | appveyor PushArtifact .\files.lst -DeploymentName "Failed Build File Listing" |
76 | 45 |
|
77 | | -for: |
78 | | -- |
79 | | - matrix: |
80 | | - only: |
81 | | - - image: Visual Studio 2019 |
82 | | - deploy: |
83 | | - - provider: GitHub |
84 | | - auth_token: |
85 | | - secure: hVyVwHl0JiVq0VxXB4VMRWbUtrGclIzadfnWFcWCQBLvbgMLahLBnWlwGglT63pZ |
86 | | - artifact: /.*(\.|\.s)nupkg/ |
87 | | - prerelease: false |
88 | | - force_update: true #fsharp package runs as separate build job, so have to force_update to add fsharp.nuget added |
89 | | - on: |
90 | | - APPVEYOR_REPO_TAG: true |
91 | | - CAN_PUBLISH: true |
92 | | - |
93 | | - - provider: NuGet |
94 | | - api_key: |
95 | | - secure: Ab4T/48EyIJhVrqkfKdUxmHUtseEVuXuyrGACxZ0KN35rb/BzABlBM2YjZojicvT |
96 | | - artifact: 'NuGetPackages' |
97 | | - on: |
98 | | - APPVEYOR_REPO_TAG: true |
99 | | - CAN_PUBLISH: true |
100 | | - |
101 | | - |
| 46 | +deploy: |
| 47 | +- provider: GitHub |
| 48 | + auth_token: |
| 49 | + secure: hVyVwHl0JiVq0VxXB4VMRWbUtrGclIzadfnWFcWCQBLvbgMLahLBnWlwGglT63pZ |
| 50 | + artifact: /.*(\.|\.s)nupkg/ |
| 51 | + prerelease: false |
| 52 | + force_update: true #fsharp package runs as separate build job, so have to force_update to add fsharp.nuget added |
| 53 | + on: |
| 54 | + APPVEYOR_REPO_TAG: true |
| 55 | + |
| 56 | +- provider: NuGet |
| 57 | + api_key: |
| 58 | + secure: Ab4T/48EyIJhVrqkfKdUxmHUtseEVuXuyrGACxZ0KN35rb/BzABlBM2YjZojicvT |
| 59 | + artifact: /.*(\.|\.s)nupkg/ |
| 60 | + on: |
| 61 | + APPVEYOR_REPO_TAG: true |
0 commit comments