File tree 11 files changed +63
-58
lines changed
11 files changed +63
-58
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
RESULTCODE=0
4
-
5
4
pushd $( pwd)
6
5
7
- # Download dotnet cli
8
- DOTNET=" $( pwd) /.cli/dotnet"
9
-
10
-
11
- if [ ! -f $DOTNET ]; then
12
- echo " Installing dotnet"
13
- mkdir -p .cli
14
- curl -o .cli/dotnet-install.sh https://raw.githubusercontent.com/dotnet/cli/4bd9bb92cc3636421cd01baedbd8ef3e41aa1e22/scripts/obtain/dotnet-install.sh
15
-
16
- # Run install.sh
17
- chmod +x .cli/dotnet-install.sh
18
- .cli/dotnet-install.sh -i .cli -c 2.0 -v 2.0.2
19
- .cli/dotnet-install.sh -i .cli -c preview -v 1.0.4
20
- fi
21
-
22
- # Display info
23
- $DOTNET --info
24
-
25
- # clean
26
- rm -r -f $( pwd) /artifacts
27
-
28
- # Clean projects and write out git info
29
- $DOTNET msbuild build/build.proj /t:Clean\; WriteGitInfo /p:Configuration=Release /nologo /v:m
30
-
31
- if [ $? -ne 0 ]; then
32
- echo " Clean;WriteGitInfo FAILED!"
33
- exit 1
34
- fi
35
-
36
- # restore
37
- $DOTNET msbuild build/build.proj /t:Restore /p:Configuration=Release /nologo /v:m
38
-
39
- if [ $? -ne 0 ]; then
40
- echo " Restore FAILED!"
41
- exit 1
42
- fi
43
-
44
- # build
45
- $DOTNET msbuild build/build.proj /t:Build\; Test\; Pack /p:Configuration=Release /nologo /v:m
46
-
47
- if [ $? -ne 0 ]; then
48
- echo " Build FAILED!"
49
- exit 1
50
- fi
6
+ # Download dotnet cli and run tests
7
+ . build/common/common.sh
8
+ run_standard_tests
51
9
52
10
popd
53
-
54
11
exit $RESULTCODE
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Function Install-DotnetCLI {
22
22
23
23
wget https:// raw.githubusercontent.com / dotnet/ cli/ 4bd9bb92cc3636421cd01baedbd8ef3e41aa1e22/ scripts/ obtain/ dotnet- install.ps1 - OutFile $installDotnet
24
24
25
- & $installDotnet - Channel 2.0 - i $CLIRoot - Version 2.0 .2
25
+ & $installDotnet - Channel 2.0 - i $CLIRoot - Version 2.0 .3
26
26
& $installDotnet - Channel preview - i $CLIRoot - Version 1.0 .4
27
27
28
28
if (-not (Test-Path $DotnetExe )) {
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ run_standard_tests ()
4
+ {
5
+ pushd $( pwd)
6
+
7
+ # Download dotnet cli
8
+ DOTNET=" $( pwd) /.cli/dotnet"
9
+
10
+
11
+ if [ ! -f $DOTNET ]; then
12
+ echo " Installing dotnet"
13
+ mkdir -p .cli
14
+ curl -o .cli/dotnet-install.sh https://raw.githubusercontent.com/dotnet/cli/4bd9bb92cc3636421cd01baedbd8ef3e41aa1e22/scripts/obtain/dotnet-install.sh
15
+
16
+ # Run install.sh
17
+ chmod +x .cli/dotnet-install.sh
18
+ .cli/dotnet-install.sh -i .cli -c 2.0 -v 2.0.3
19
+ .cli/dotnet-install.sh -i .cli -c preview -v 1.0.4
20
+ fi
21
+
22
+ # Display info
23
+ $DOTNET --info
24
+
25
+ # clean
26
+ rm -r -f $( pwd) /artifacts
27
+
28
+ # Clean projects and write out git info
29
+ $DOTNET msbuild build/build.proj /t:Clean\; WriteGitInfo /p:Configuration=Release /nologo /v:m
30
+
31
+ if [ $? -ne 0 ]; then
32
+ echo " Clean;WriteGitInfo FAILED!"
33
+ exit 1
34
+ fi
35
+
36
+ # restore
37
+ $DOTNET msbuild build/build.proj /t:Restore /p:Configuration=Release /nologo /v:m
38
+
39
+ if [ $? -ne 0 ]; then
40
+ echo " Restore FAILED!"
41
+ exit 1
42
+ fi
43
+
44
+ # build
45
+ $DOTNET msbuild build/build.proj /t:Build\; Test\; Pack /p:Configuration=Release /nologo /v:m
46
+
47
+ if [ $? -ne 0 ]; then
48
+ echo " Build FAILED!"
49
+ exit 1
50
+ fi
51
+
52
+ popd
53
+ }
Original file line number Diff line number Diff line change 19
19
<PackagesConfigDirectory >$(RepositoryRootDirectory).nuget\packages\</PackagesConfigDirectory >
20
20
<CIRootDirectory >$(RepositoryRootDirectory).ci\</CIRootDirectory >
21
21
<MSBuildArtifactsDirectory >$(RepositoryRootDirectory)artifacts\msbuild\</MSBuildArtifactsDirectory >
22
- <XunitConsoleExePath >$(PackagesConfigDirectory)xunit.runner.console.2.3.0 \tools\net452\xunit.console.exe</XunitConsoleExePath >
22
+ <XunitConsoleExePath >$(PackagesConfigDirectory)xunit.runner.console.2.3.1 \tools\net452\xunit.console.exe</XunitConsoleExePath >
23
23
<NupkgOutputDirectory >$(ArtifactsDirectory)nupkgs\</NupkgOutputDirectory >
24
24
<PublishOutputDirectory >$(ArtifactsDirectory)publish\</PublishOutputDirectory >
25
25
<LogOutputDirectory >$(ArtifactsDirectory)logs\</LogOutputDirectory >
Original file line number Diff line number Diff line change 32
32
<PropertyGroup >
33
33
<FluentAssertionsVersion Condition =" '$(FluentAssertionsVersion)' == '' " >4.19.4</FluentAssertionsVersion >
34
34
<ToStringWithoutOverrideAnalyzerVersion Condition =" '$(ToStringWithoutOverrideAnalyzerVersion)' == '' " >0.5.0</ToStringWithoutOverrideAnalyzerVersion >
35
- <TestSDKVersion Condition =" '$(TestSDKVersion)' == '' " >15.0 .0</TestSDKVersion >
35
+ <TestSDKVersion Condition =" '$(TestSDKVersion)' == '' " >15.5 .0</TestSDKVersion >
36
36
<XunitVersion Condition =" '$(XunitVersion)' == '' " >2.3.1</XunitVersion >
37
37
<XunitRunnerVisualStudioVersion Condition =" '$(XunitRunnerVisualStudioVersion)' == '' " >$(XunitVersion)</XunitRunnerVisualStudioVersion >
38
38
<SourceLinkVersion Condition =" '$(SourceLinkVersion)' == '' " >2.5.0</SourceLinkVersion >
68
68
<PropertyGroup Condition =" '$(TestProject)' == 'true' " >
69
69
<AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
70
70
<GenerateBindingRedirectsOutputType >true</GenerateBindingRedirectsOutputType >
71
- <OutputType >Exe</OutputType >
72
71
</PropertyGroup >
73
72
74
73
<ItemGroup Condition =" '$(TestProject)' == 'true' " >
149
148
Returns =" @(TestAssemblyPath)" >
150
149
151
150
<PropertyGroup >
152
- <TestAssemblyRelativePath Condition =" '$(IsDesktop)' == 'true' " >$(OutputPath)$(AssemblyName).exe</TestAssemblyRelativePath >
153
- <TestAssemblyRelativePath Condition =" '$(IsDesktop)' != 'true' " >$(OutputPath)$(AssemblyName).dll</TestAssemblyRelativePath >
151
+ <TestAssemblyRelativePath >$(OutputPath)$(AssemblyName).dll</TestAssemblyRelativePath >
152
+ <!-- If the tests are built as an .exe use that file. -->
153
+ <TestAssemblyRelativePath Condition =" Exists('$(OutputPath)$(AssemblyName).exe')" >$(OutputPath)$(AssemblyName).exe</TestAssemblyRelativePath >
154
154
</PropertyGroup >
155
155
156
156
<ConvertToAbsolutePath Paths =" $(TestAssemblyRelativePath)" >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<packages >
3
- <package id =" xunit.runner.console" version =" 2.3.0 " targetFramework =" net46" />
3
+ <package id =" xunit.runner.console" version =" 2.3.1 " targetFramework =" net46" />
4
4
</packages >
Original file line number Diff line number Diff line change 10
10
</PropertyGroup >
11
11
12
12
<PropertyGroup >
13
- <OutputType >Exe</OutputType >
14
13
<TestProject >true</TestProject >
15
14
</PropertyGroup >
16
15
Original file line number Diff line number Diff line change 10
10
</PropertyGroup >
11
11
12
12
<PropertyGroup >
13
- <OutputType >Exe</OutputType >
14
13
<TestProject >true</TestProject >
15
14
</PropertyGroup >
16
15
Original file line number Diff line number Diff line change 15
15
</ItemGroup >
16
16
17
17
<PropertyGroup >
18
- <OutputType >Exe</OutputType >
19
18
<TestProject >true</TestProject >
20
19
</PropertyGroup >
21
20
Original file line number Diff line number Diff line change 15
15
</ItemGroup >
16
16
17
17
<PropertyGroup >
18
- <OutputType >Exe</OutputType >
19
18
<TestProject >true</TestProject >
20
19
</PropertyGroup >
21
20
Original file line number Diff line number Diff line change 15
15
</ItemGroup >
16
16
17
17
<PropertyGroup >
18
- <OutputType >Exe</OutputType >
19
18
<TestProject >true</TestProject >
20
19
</PropertyGroup >
21
20
You can’t perform that action at this time.
0 commit comments