-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
144 lines (89 loc) · 3.77 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
version: 0.1.0-0.ci.{build}
skip_commits:
files:
- docs/*
- '**/*.md'
image:
- Ubuntu
- Visual Studio 2017
configuration:
- Release
nuget:
project_feed: true
for:
-
matrix:
only:
- image: Ubuntu
dotnet_csproj:
patch: true
file: 'source/**/*.csproj'
version: '{version}'
build_script:
- sh: >-
cd $APPVEYOR_BUILD_FOLDER/source
dotnet restore
dotnet build -c Release
appveyor PushArtifact NuLink.Cli/bin/Release/NuLink.$APPVEYOR_BUILD_VERSION.nupkg
before_test:
- sh: >-
echo ---- before_test for Linux! ----
pwd
dotnet --info
cd $APPVEYOR_BUILD_FOLDER/demos/NuLink.TestCase.FirstPackage/NuLink.TestCase.FirstPackage
dotnet build -c Release
appveyor PushArtifact bin/Release/NuLink.TestCase.FirstPackage.0.1.0.nupkg
cd $APPVEYOR_BUILD_FOLDER/demos/NuLink.TestCase.SecondPackage/NuLink.TestCase.SecondPackage
dotnet build -c Release
appveyor PushArtifact bin/Release/NuLink.TestCase.SecondPackage.0.2.0.nupkg
dotnet tool install -g NuLink --version $APPVEYOR_BUILD_VERSION --add-source https://ci.appveyor.com/nuget/nulink-3672eibylf8q
nulink --version
export NULINK_TEST_USE_INSTALLED=YES
test_script:
- sh: >-
cd $APPVEYOR_BUILD_FOLDER/source/NuLink.Tests
dotnet test -c Release --logger:Appveyor
-
matrix:
only:
- image: Visual Studio 2017
dotnet_csproj:
patch: true
file: 'source\**\*.csproj'
version: '{version}'
build_script:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%\source
dotnet restore
dotnet build -c Release
appveyor PushArtifact NuLink.Cli\bin\Release\NuLink.%APPVEYOR_BUILD_VERSION%.nupkg
before_test:
- cmd: >-
echo ---- before_test for Windows! ----
echo %cd%
dotnet --info
cd %APPVEYOR_BUILD_FOLDER%\demos\NuLink.TestCase.FirstPackage\NuLink.TestCase.FirstPackage
dotnet build -c Release
appveyor PushArtifact bin\Release\NuLink.TestCase.FirstPackage.0.1.0.nupkg
cd %APPVEYOR_BUILD_FOLDER%\demos\NuLink.TestCase.SecondPackage\NuLink.TestCase.SecondPackage
dotnet build -c Release
appveyor PushArtifact bin\Release\NuLink.TestCase.SecondPackage.0.2.0.nupkg
cd %APPVEYOR_BUILD_FOLDER%\demos\NetFx\NuLink.TestCase.FirstPackage.NetFx\NuLink.TestCase.FirstPackage.NetFx
msbuild ..\NuLink.TestCase.FirstPackage.NetFx.sln /p:Configuration=Release
nuget pack NuLink.TestCase.FirstPackage.NetFx.nuspec
appveyor PushArtifact NuLink.TestCase.FirstPackage.NetFx.0.1.0.nupkg
cd %APPVEYOR_BUILD_FOLDER%\demos\NetFx\NuLink.TestCase.SecondPackage.NetFx\NuLink.TestCase.SecondPackage.NetFx
nuget restore -SolutionDirectory ..
msbuild ..\NuLink.TestCase.SecondPackage.NetFx.sln /p:Configuration=Release
nuget pack NuLink.TestCase.SecondPackage.NetFx.nuspec
appveyor PushArtifact NuLink.TestCase.SecondPackage.NetFx.0.2.0.nupkg
dotnet tool install -g NuLink --version %APPVEYOR_BUILD_VERSION% --add-source https://ci.appveyor.com/nuget/nulink-3672eibylf8q
nulink --version
set NULINK_TEST_USE_INSTALLED=YES
set NULINK_TEST_INCLUDE_DIAGNOSTICS=YES
test_script:
- cmd: >-
cd %APPVEYOR_BUILD_FOLDER%\source\NuLink.Tests
dotnet test -c Release --logger:Appveyor
# on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))