This repository was archived by the owner on Aug 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +56
-3
lines changed
src/Sentry.PlatformAbstractions Expand file tree Collapse file tree 7 files changed +56
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,16 @@ environment:
4
4
global :
5
5
DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
6
6
DOTNET_CLI_TELEMETRY_OPTOUT : 1
7
+ ZEUS_HOOK_BASE :
8
+ secure : dcqtt6sxxBV0tDkXmPZOy5szEf2J7bnIlD7xZZLFC9Ald0sqhPfNEqT0n+kpdWkER5P1kC/+2N29Wq1KJtFGj8Oo+LOybERbQJk6ZoyUJmgH7mtxBtbMsiXBUWZjElLIr7Hi5yiCqTFJ49yLLKwSnn7TvxPWX7qPHfT51O9XE3U=
9
+ branches :
10
+ only :
11
+ - master
12
+ - /^release\/.*$/
13
+ install :
14
+ # Push job information to Zeus
15
+ - npm install -g @zeus-ci/cli
16
+ - zeus job update --status=pending -B "%APPVEYOR_PULL_REQUEST_TITLE%" -J "%APPVEYOR_JOB_NAME%"
7
17
test : off
8
18
build_script :
9
19
- ps : ./build.ps1
@@ -14,3 +24,14 @@ dotnet_csproj:
14
24
package_version : ' {version}'
15
25
artifacts :
16
26
- path : ' **\*.nupkg'
27
+
28
+ on_success :
29
+ - ps : >
30
+ $ErrorActionreferencePreference = "stop";
31
+ Resolve-Path -Relative .\src\*\bin\Release\*.nupkg |
32
+ Foreach-Object { zeus upload -t "application/zip+nupkg" $_};
33
+ if ($?) { zeus job update --status=passed }
34
+ else { $host.SetShouldExit(1) }
35
+
36
+ on_failure :
37
+ - zeus job update --status=failed
Original file line number Diff line number Diff line change
1
+ ---
2
+ github :
3
+ owner : getsentry
4
+ repo : sentry-dotnet-platform-abstractions
5
+ targets :
6
+ - name : nuget
Original file line number Diff line number Diff line change 3
3
- curl -L https://dot.net/v1/dotnet-install.sh > /tmp/install-dotnet.sh && bash /tmp/install-dotnet.sh -Version 1.1.8
4
4
- sudo mv ~/.dotnet/shared/Microsoft.NETCore.App/* "$(dirname $(dirname $(dotnet --info | grep "Base Path" | awk '{print $3}')))/shared/Microsoft.NETCore.App/"
5
5
- sudo mv ~/.dotnet/sdk/* "$(dirname $(dirname $(dotnet --info | grep "Base Path" | awk '{print $3}')))/sdk/"
6
+ - npm install -g @zeus-ci/cli
6
7
env :
7
8
global :
8
9
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
@@ -19,3 +20,18 @@ matrix:
19
20
group : edge
20
21
script :
21
22
- ./build.sh
23
+
24
+ branches :
25
+ only :
26
+ - master
27
+ - /^release\/.*$/
28
+
29
+ notifications :
30
+ webhooks :
31
+ urls :
32
+ - https://zeus.ci/hooks/94196268-8f31-11e8-87bb-0a580a280341/public/provider/travis/webhook
33
+ on_success : always
34
+ on_failure : always
35
+ on_start : always
36
+ on_cancel : always
37
+ on_error : always
Original file line number Diff line number Diff line change 5
5
<AssemblyOriginatorKeyFile >../../.assets/Sentry.snk</AssemblyOriginatorKeyFile >
6
6
<SignAssembly >true</SignAssembly >
7
7
8
+ <Version >1.0.0-preview1</Version >
9
+
8
10
<!-- When compiling .NET SDK 2.0 projects targeting .NET 4.x on 32 bit Windows or Mono using 'dotnet build' you -->
9
11
<!-- have to teach MSBuild where the Mono copy of the reference asssemblies is -->
10
12
<TargetFullFx Condition =" $(TargetFramework.StartsWith('net4')) OR $(TargetFramework.StartsWith('net3'))" >true</TargetFullFx >
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- msbuild /t:restore,build /p:Configuration=Release
4
+ msbuild /t:restore,build,pack /p:Configuration=Release
5
5
6
6
targets=` perl -nle ' print $& if m{TargetFrameworks\>\K(.*)(?=\<)}' \
7
7
test/Sentry.PlatformAbstractions.Tests/Sentry.PlatformAbstractions.Tests.csproj \
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eux
3
+
4
+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
5
+ cd $SCRIPT_DIR /..
6
+
7
+ OLD_VERSION=" $1 "
8
+ NEW_VERSION=" $2 "
9
+
10
+ sed -i ' ' -e " 1,/<Version>/ s!<Version>.*</Version>!<Version>$NEW_VERSION </Version>!" Directory.Build.props
Original file line number Diff line number Diff line change 7
7
<TreatWarningsAsErrors >True</TreatWarningsAsErrors >
8
8
<LangVersion >7.2</LangVersion >
9
9
<Description >Abstractions to platform information</Description >
10
- <VersionPrefix >1.0.1</VersionPrefix >
11
- <VersionSuffix >preview1</VersionSuffix >
12
10
<Authors >Sentry Team and Contributors</Authors >
13
11
<PackageTags >Sentry;GetSentry;Error-Reporting;Crash-Reporting;Exception-Handling</PackageTags >
14
12
<PackageIconUrl >https://raw.githubusercontent.com/getsentry/sentry-dotnet-platform-abstractions/master/.assets/sentry-nuget.png</PackageIconUrl >
You can’t perform that action at this time.
0 commit comments