forked from unosquare/embedio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
68 lines (68 loc) · 3.06 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
61
62
63
64
65
66
67
68
version: '1.13.{build}'
image:
- Visual Studio 2017
- Ubuntu
notifications:
- provider: Slack
auth_token:
secure: Q+xg4/yU5OR9BVF14cw4yZ+3qlhMeYDsAhUQyOIszmF1mHvq44tIvQpWByBJCd/cgUIZk3SwBpk4hh1MrkQIk6rnaOZ2LNBTev4zrq36oXk=
channel: '#builds'
environment:
APPVEYOR_YML_DISABLE_PS_LINUX: true
DOTNET_CLI_TELEMETRY_OPTOUT: 1
COVERALLS_REPO_TOKEN:
secure: 1Ce1wX4c2duHsRshiJRZFVIe6VI/r0WTAUG/tXuGFue9CmTI13NJRgZbl9irVKBA
op_build_user: "Geo Perez"
op_build_user_email: "[email protected]"
access_token:
secure: HzWdswNyfQbQ0vLk9IQyO+Ei9mxoPYp9rvv6HPhtC9J/Fm7EHRzyV953pbPRXI9I
before_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git checkout $env:APPVEYOR_REPO_BRANCH -q
cinst docfx -y
}
- dotnet restore Unosquare.Labs.EmbedIO.sln
- cmd: mkdir tools
- cmd: nuget install OpenCover -Version 4.6.519 -OutputDirectory tools
- cmd: nuget install coveralls.net -Version 0.7.0 -OutputDirectory tools
build_script:
- cmd: msbuild /p:Configuration=Release Unosquare.Labs.EmbedIO.sln
- sh: |
cd src/Unosquare.Labs.EmbedIO
msbuild /verbosity:quiet /p:Configuration=Release;TargetFrameworks="netstandard2.0;netstandard1.3"
cd ..
cd ..
pwd
test_script:
- dotnet test test/Unosquare.Labs.EmbedIO.Tests/Unosquare.Labs.EmbedIO.Tests.csproj -c Release -f netcoreapp2.0
- cmd: dotnet test test\Unosquare.Labs.EmbedIO.Tests\Unosquare.Labs.EmbedIO.Tests.csproj -c Release -f net47
- cmd: tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"%ProgramFiles%\dotnet\dotnet.exe" -targetargs:"test test\Unosquare.Labs.EmbedIO.Tests\Unosquare.Labs.EmbedIO.Tests.csproj -c Release -f net46" -output:coverage.xml -filter:"+[Unosquare.Labs.EmbedIO*]* -[Unosquare.Labs.EmbedIO.Test*]*" -register:userdotnet
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
tools\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe --opencover -i coverage.xml --serviceName appveyor --jobId %APPVEYOR_BUILD_NUMBER%
}
after_build:
- ps: |
if(-Not $env:APPVEYOR_PULL_REQUEST_TITLE)
{
git config --global credential.helper store
Add-Content "$env:USERPROFILE\.git-credentials" "https://$($env:access_token):[email protected]`n"
git config --global core.autocrlf false
git config --global user.email $env:op_build_user_email
git config --global user.name $env:op_build_user
git clone -b documentation https://github.com/unosquare/best-practices.git -q
git clone https://github.com/unosquare/embedio.wiki.git wiki -q
docfx docfx.json --logLevel Error
git clone https://github.com/unosquare/embedio.git -b gh-pages origin_site -q
Copy-Item origin_site/.git _site -recurse
Copy-Item origin_site/images _site -recurse
Copy-Item origin_site/index.html _site
CD _site
git add -A 2>&1
git commit -m "Documentation update" -q
git push origin gh-pages -q
CD ..
}