Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: prep the repo for automated releasing #965

Merged
merged 5 commits into from
Jan 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 3 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ dist: trusty
mono: latest
sudo: required

env:
matrix:
secure: KJrQ+NfmzlgCSXRyqeAMDGZUG6GO4/+xk1T0wGy1BgVz8seo/fDWL8osWEljB4Sj05sfFj7CM+rociwL6sdVyqCiHbCAM7XuHs58D+4Tlh5pGHL+G1qOl65/pDl0ulq+M7PwDxHPZ60/oyH2a16t5jtD9e4W31y2fXzEbHGLHXg=

before_install:
- mkdir -p .nuget
- wget -O .nuget/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
Expand All @@ -22,33 +18,15 @@ before_script:
- nohup prism run -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/master/oai_stoplight.json &

script:
- dotnet restore
- dotnet build ./src/SendGrid -c Release
- dotnet test ./tests/SendGrid.Tests/SendGrid.Tests.csproj -c Release -f netcoreapp1.0
- ls ./src/SendGrid/bin/Release/net452/
- ls ./src/SendGrid/bin/Release/netstandard1.3/
- dotnet pack ./src/SendGrid -c Release
- curl -s https://codecov.io/bash > .codecov
- chmod +x .codecov
- ./.codecov
- make release

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

deploy:
skip_cleanup: true
provider: script
script: dotnet nuget push ./src/Sendgrid/bin/Release/SendGrid.*.nupkg --api-key $NUGET_API_KEY --source $NUGET_SOURCE
script: dotnet nuget push ./src/Sendgrid/bin/Release/SendGrid.*.nupkg --api-key $NUGET_API_KEY
on:
branch: master
condition: '"x$NUGET_API_KEY" != "x" && "x$NUGET_SOURCE" != "x"'

notifications:
hipchat:
rooms:
secure: T8r/eNzevZXJDmSK7ZKG+t/Vx0cENHIMWVuKbt3RSYbXl6QsWv8UTPamFSkLP0zbcCyGQ7d+QKaEc18ffCtiBV9MXPy8Q1XFGzKxr5/GnwMx4p0ArTqbFLCyl3JuXBmCGouWG+ulb9eOGUFc6L/4p2cwAfXf2oTcXYqosBnfoHg=
template:
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
<a href="https://github.com/%{repository}/commits/%{commit}">View on GitHub</a>'
format: html
tags: true
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Change Log
All notable changes to this project will be documented in this file.

## [9.12.0] - 2019-08-15
[2019-08-15] Version 9.12.0
---------------------------
- [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!
- [PR #876](https://github.com/sendgrid/sendgrid-csharp/pull/876) Add `EmailAddress` attribute. Big thanks to [Jonathan](https://github.com/vanillajonathan) for the PR!
- [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!
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

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

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 19 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.PHONY: clean test install release

clean:
dotnet clean

install:
@dotnet --version || (echo "Dotnet is not installed, please install Dotnet CLI"; exit 1);
dotnet restore

test:
dotnet restore
dotnet build ./src/SendGrid -c Release
dotnet test ./tests/SendGrid.Tests/SendGrid.Tests.csproj -c Release -f netcoreapp1.0
curl -s https://codecov.io/bash > .codecov
chmod +x .codecov
./.codecov

release: test
dotnet pack ./src/SendGrid -c Release
2 changes: 1 addition & 1 deletion src/SendGrid/SendGrid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<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>
<PackageReleaseNotes>Please see: https://github.com/sendgrid/sendgrid-csharp/releases</PackageReleaseNotes>
<PackageTags>Twilio;SendGrid;Email;Mail;Microsoft;Azure;Transactional;.NET Core</PackageTags>
<Copyright>Twilio SendGrid, Inc. 2019</Copyright>
<Copyright>Twilio SendGrid, Inc. 2020</Copyright>
</PropertyGroup>

<ItemGroup>
Expand Down