Skip to content

Commit 47a55d6

Browse files
chore: prep the repo for automated releasing (#965)
1 parent 02556d3 commit 47a55d6

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

.travis.yml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@ dist: trusty
55
mono: latest
66
sudo: required
77

8-
env:
9-
matrix:
10-
secure: KJrQ+NfmzlgCSXRyqeAMDGZUG6GO4/+xk1T0wGy1BgVz8seo/fDWL8osWEljB4Sj05sfFj7CM+rociwL6sdVyqCiHbCAM7XuHs58D+4Tlh5pGHL+G1qOl65/pDl0ulq+M7PwDxHPZ60/oyH2a16t5jtD9e4W31y2fXzEbHGLHXg=
11-
128
before_install:
139
- mkdir -p .nuget
1410
- wget -O .nuget/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
@@ -22,33 +18,15 @@ before_script:
2218
- nohup prism run -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json &
2319

2420
script:
25-
- dotnet restore
26-
- dotnet build ./src/SendGrid -c Release
27-
- dotnet test ./tests/SendGrid.Tests/SendGrid.Tests.csproj -c Release -f netcoreapp1.0
28-
- ls ./src/SendGrid/bin/Release/net452/
29-
- ls ./src/SendGrid/bin/Release/netstandard1.3/
30-
- dotnet pack ./src/SendGrid -c Release
31-
- curl -s https://codecov.io/bash > .codecov
32-
- chmod +x .codecov
33-
- ./.codecov
21+
- make release
3422

3523
after_success:
3624
- bash <(curl -s https://codecov.io/bash)
3725

3826
deploy:
3927
skip_cleanup: true
4028
provider: script
41-
script: dotnet nuget push ./src/Sendgrid/bin/Release/SendGrid.*.nupkg --api-key $NUGET_API_KEY --source $NUGET_SOURCE
29+
script: dotnet nuget push ./src/Sendgrid/bin/Release/SendGrid.*.nupkg --api-key $NUGET_API_KEY
4230
on:
4331
branch: master
44-
condition: '"x$NUGET_API_KEY" != "x" && "x$NUGET_SOURCE" != "x"'
45-
46-
notifications:
47-
hipchat:
48-
rooms:
49-
secure: T8r/eNzevZXJDmSK7ZKG+t/Vx0cENHIMWVuKbt3RSYbXl6QsWv8UTPamFSkLP0zbcCyGQ7d+QKaEc18ffCtiBV9MXPy8Q1XFGzKxr5/GnwMx4p0ArTqbFLCyl3JuXBmCGouWG+ulb9eOGUFc6L/4p2cwAfXf2oTcXYqosBnfoHg=
50-
template:
51-
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
52-
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
53-
<a href="https://github.com/%{repository}/commits/%{commit}">View on GitHub</a>'
54-
format: html
32+
tags: true

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4-
## [9.12.0] - 2019-08-15
4+
[2019-08-15] Version 9.12.0
5+
---------------------------
56
- [PR #892](https://github.com/sendgrid/sendgrid-csharp/pull/892) Replace nuspec and AssemblyInfo with csproj. Big thanks to [Jonas Nyrup](https://github.com/jnyrup) for the PR!
67
- [PR #876](https://github.com/sendgrid/sendgrid-csharp/pull/876) Add `EmailAddress` attribute. Big thanks to [Jonathan](https://github.com/vanillajonathan) for the PR!
78
- [PR #839](https://github.com/sendgrid/sendgrid-csharp/pull/839) Refactored SendGridClient to support inject external managed HttpClient. Big thanks to [Charley Wu](https://github.com/akunzai) for the PR!

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2012-2019 Twilio SendGrid, Inc.
3+
Copyright (c) 2012-2020 Twilio SendGrid, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.PHONY: clean test install release
2+
3+
clean:
4+
dotnet clean
5+
6+
install:
7+
@dotnet --version || (echo "Dotnet is not installed, please install Dotnet CLI"; exit 1);
8+
dotnet restore
9+
10+
test:
11+
dotnet restore
12+
dotnet build ./src/SendGrid -c Release
13+
dotnet test ./tests/SendGrid.Tests/SendGrid.Tests.csproj -c Release -f netcoreapp1.0
14+
curl -s https://codecov.io/bash > .codecov
15+
chmod +x .codecov
16+
./.codecov
17+
18+
release: test
19+
dotnet pack ./src/SendGrid -c Release

src/SendGrid/SendGrid.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<PackageDescription>C# client library and examples for using Twilio SendGrid API's to send mail and access Web API v3 endpoints with .NET Standard 1.3 and .NET Core support.</PackageDescription>
2828
<PackageReleaseNotes>Please see: https://github.com/sendgrid/sendgrid-csharp/releases</PackageReleaseNotes>
2929
<PackageTags>Twilio;SendGrid;Email;Mail;Microsoft;Azure;Transactional;.NET Core</PackageTags>
30-
<Copyright>Twilio SendGrid, Inc. 2019</Copyright>
30+
<Copyright>Twilio SendGrid, Inc. 2020</Copyright>
3131
</PropertyGroup>
3232

3333
<ItemGroup>

0 commit comments

Comments
 (0)