Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 0f7a941

Browse files
authored
Merge pull request #12 from getsentry/feat/use-craft
feat: Use "craft" for releases
2 parents 05f92e3 + 6053134 commit 0f7a941

File tree

7 files changed

+56
-3
lines changed

7 files changed

+56
-3
lines changed

.appveyor.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ environment:
44
global:
55
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
66
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%"
717
test: off
818
build_script:
919
- ps: ./build.ps1
@@ -14,3 +24,14 @@ dotnet_csproj:
1424
package_version: '{version}'
1525
artifacts:
1626
- 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

.craft.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
github:
3+
owner: getsentry
4+
repo: sentry-dotnet-platform-abstractions
5+
targets:
6+
- name: nuget

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ install:
33
- curl -L https://dot.net/v1/dotnet-install.sh > /tmp/install-dotnet.sh && bash /tmp/install-dotnet.sh -Version 1.1.8
44
- sudo mv ~/.dotnet/shared/Microsoft.NETCore.App/* "$(dirname $(dirname $(dotnet --info | grep "Base Path" | awk '{print $3}')))/shared/Microsoft.NETCore.App/"
55
- sudo mv ~/.dotnet/sdk/* "$(dirname $(dirname $(dotnet --info | grep "Base Path" | awk '{print $3}')))/sdk/"
6+
- npm install -g @zeus-ci/cli
67
env:
78
global:
89
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
@@ -19,3 +20,18 @@ matrix:
1920
group: edge
2021
script:
2122
- ./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

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
<AssemblyOriginatorKeyFile>../../.assets/Sentry.snk</AssemblyOriginatorKeyFile>
66
<SignAssembly>true</SignAssembly>
77

8+
<Version>1.0.0-preview1</Version>
9+
810
<!-- When compiling .NET SDK 2.0 projects targeting .NET 4.x on 32 bit Windows or Mono using 'dotnet build' you -->
911
<!-- have to teach MSBuild where the Mono copy of the reference asssemblies is -->
1012
<TargetFullFx Condition="$(TargetFramework.StartsWith('net4')) OR $(TargetFramework.StartsWith('net3'))">true</TargetFullFx>

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
msbuild /t:restore,build /p:Configuration=Release
4+
msbuild /t:restore,build,pack /p:Configuration=Release
55

66
targets=`perl -nle 'print $& if m{TargetFrameworks\>\K(.*)(?=\<)}' \
77
test/Sentry.PlatformAbstractions.Tests/Sentry.PlatformAbstractions.Tests.csproj \

scripts/bump-version.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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

src/Sentry.PlatformAbstractions/Sentry.PlatformAbstractions.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
88
<LangVersion>7.2</LangVersion>
99
<Description>Abstractions to platform information</Description>
10-
<VersionPrefix>1.0.1</VersionPrefix>
11-
<VersionSuffix>preview1</VersionSuffix>
1210
<Authors>Sentry Team and Contributors</Authors>
1311
<PackageTags>Sentry;GetSentry;Error-Reporting;Crash-Reporting;Exception-Handling</PackageTags>
1412
<PackageIconUrl>https://raw.githubusercontent.com/getsentry/sentry-dotnet-platform-abstractions/master/.assets/sentry-nuget.png</PackageIconUrl>

0 commit comments

Comments
 (0)