-
Notifications
You must be signed in to change notification settings - Fork 8
/
appveyor.yml
40 lines (40 loc) · 1.27 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
version: 4.0.{build}
pull_requests:
do_not_increment_build_number: true
image: Ubuntu2204
only_commits:
files:
- AzureFunctions.TestHelpers/**/*
- appveyor.yml
configuration: Release
environment:
CODECOV_TOKEN: 00146f9e-ddb9-42e6-a357-fd0f0ec4438a
dotnet_csproj:
patch: true
file: '**\*.csproj'
version: '{version}'
package_version: '{version}'
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- |+
declare repo_version=$(if command -v lsb_release &> /dev/null; then lsb_release -r -s; else grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"'; fi)
wget https://packages.microsoft.com/config/ubuntu/$repo_version/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt update
sudo apt install dotnet-sdk-8.0 -y
build:
publish_nuget: true
verbosity: minimal
test_script:
- dotnet test -s test.runsettings
after_test:
- curl -Os https://uploader.codecov.io/latest/linux/codecov && chmod +x codecov && ./codecov -t ${CODECOV_TOKEN} -f **/*.cobertura.xml
deploy:
- provider: NuGet
api_key:
secure: pZYKB9EWhp9ykhnd75dMBbnc96Ti/F3pWYyRVj/toW7HDNBCl2zd7Fnw+/JNDtyV
on:
branch: main