-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathappveyor.yml
60 lines (60 loc) · 1.91 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '{build}'
image:
- Visual Studio 2019
- Ubuntu
stack: node 6
skip_commits:
files:
- '*.md'
- '*.txt'
environment:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
install:
- ps: if ($isWindows) { Install-Product node 6 }
- cmd: npm install -g eclint
- cmd: git rm .editorconfig
- cmd: eclint check -n "**/*.{cs,tt,cmd,sh,md,txt,yml}"
- cmd: eclint check -w "**/*.{cs,tt,cmd,sh,md,txt,yml,json,sln,csproj,shfbproj}"
- cmd: git reset --hard
- cmd: curl -OsSL https://dot.net/v1/dotnet-install.ps1
- ps: if ($isWindows) { ./dotnet-install.ps1 -JsonFile global.json }
- ps: if ($isWindows) { ./dotnet-install.ps1 -Runtime dotnet -Version 2.1.30 -SkipNonVersionedFiles }
- sh: curl -OsSL https://dot.net/v1/dotnet-install.sh
- sh: chmod +x dotnet-install.sh
- sh: ./dotnet-install.sh --jsonfile global.json
- sh: ./dotnet-install.sh --runtime dotnet --version 2.1.30 --skip-non-versioned-files
- sh: export PATH="$HOME/.dotnet:$PATH"
skip_tags: true
before_build:
- dotnet --info
build_script:
- ps: |
$id = ([datetimeoffset]$env:APPVEYOR_REPO_COMMIT_TIMESTAMP).ToUniversalTime().ToString('yyyyMMdd''t''HHmm')
if ($isWindows) {
cmd /c call .\pack.cmd ci-$id $env:APPVEYOR_REPO_COMMIT
} else {
./pack.sh ci-$id $env:APPVEYOR_REPO_COMMIT
}
test_script:
- cmd: test.cmd
- ps: if ($isWindows) { Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile codecov.exe }
- cmd: codecov.exe
- sh: ./test.sh
artifacts:
- path: dist\*.nupkg
deploy:
- provider: NuGet
server: https://www.myget.org/F/raboof/api/v2/package
api_key:
secure: fhGwXyO35FSshRzs5GWmF1LJTrd1sIqmS/jNCSfO2LfOciuYAKiXuFMYZFGiTAl+
symbol_server: https://www.myget.org/F/raboof/symbols/api/v2/package
on:
branch: master
notifications:
- provider: Email
to:
on_build_success: true
on_build_failure: true
on_build_status_changed: false