-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from octokit/haacked/nuget-packages
Add poor man's nuget build script
- Loading branch information
Showing
15 changed files
with
270 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>Octokit.Reactive</id> | ||
<version>0.1.0</version> | ||
<authors>GitHub</authors> | ||
<owners>GitHub</owners> | ||
<licenseUrl>https://github.com/octokit/octokit.net/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/octokit/octokit.net</projectUrl> | ||
<iconUrl>https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>An IObservable based GitHub API client library for .NET using Reactive Extensions</description> | ||
<releaseNotes>Initial release.</releaseNotes> | ||
<copyright>Copyright GitHub 2013</copyright> | ||
<tags>GitHub API Octokit</tags> | ||
<dependencies> | ||
<dependency id="Octokit" version="0.1.0" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<package > | ||
<metadata> | ||
<id>Octokit</id> | ||
<version>0.1.0</version> | ||
<authors>GitHub</authors> | ||
<owners>GitHub</owners> | ||
<licenseUrl>https://github.com/octokit/octokit.net/blob/master/LICENSE.txt</licenseUrl> | ||
<projectUrl>https://github.com/octokit/octokit.net</projectUrl> | ||
<iconUrl>https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png</iconUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>An async-based GitHub API client library for .NET</description> | ||
<releaseNotes>Initial release.</releaseNotes> | ||
<copyright>Copyright GitHub 2013</copyright> | ||
<tags>GitHub API Octokit</tags> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
using System.Reflection; | ||
|
||
[assembly: AssemblyTitle("Octokit")] | ||
[assembly: AssemblyDescription("A Task based GitHub API client library for .NET")] | ||
[assembly: AssemblyDescription("An async-based GitHub API client library for .NET")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,30 @@ | ||
Powershell -ExecutionPolicy Unrestricted %~dp0Build-Solution.ps1 | ||
@echo Off | ||
set config=%1 | ||
if "%config%" == "" ( | ||
set config=Release | ||
) | ||
|
||
Powershell -ExecutionPolicy Unrestricted %~dp0Build-Solution.ps1 FullBuild %config% | ||
|
||
rd packaging /s /q REM delete the old stuff | ||
|
||
if not exist packaging\octokit\lib\net45 mkdir packaging\octokit\lib\net45\ | ||
if not exist packaging\octokit\lib\netcore45 mkdir packaging\octokit\lib\netcore45\ | ||
|
||
copy LICENSE.txt packaging\octokit\ | ||
copy README.md packaging\octokit\ | ||
|
||
copy Octokit\bin\Release\Octokit.dll packaging\octokit\lib\net45\ | ||
copy Octokit\bin\WinRT\Release\OctokitRT.dll packaging\octokit\lib\netcore45\ | ||
|
||
tools\nuget\nuget.exe pack "octokit.nuspec" -BasePath packaging\octokit -Output packaging | ||
|
||
|
||
if not exist packaging\octokit.reactive\lib\net45 mkdir packaging\octokit.reactive\lib\net45\ | ||
|
||
copy LICENSE.txt packaging\octokit.reactive\ | ||
copy README.md packaging\octokit.reactive\ | ||
|
||
copy Octokit.Reactive\bin\Release\Octokit.Reactive.dll packaging\octokit.reactive\lib\net45\ | ||
|
||
tools\nuget\nuget.exe pack "octokit.reactive.nuspec" -BasePath packaging\octokit.reactive -Output packaging |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2012 GitHub, 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 in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Octokit - GitHub API Client Library for .NET | ||
|
||
Octokit is a client library targeting .NET 4.0 and above that provides an easy | ||
way to interact with the [GitHub API](http://developer.github.com/v3/). | ||
|
||
## Usage examples | ||
|
||
Get public info on a specific user. | ||
|
||
``` | ||
var github = new GitHubClient(); | ||
var user = await github.User.Get("half-ogre"); | ||
Console.WriteLine(user.Followers + " folks love the half ogre!"); | ||
``` | ||
|
||
## Getting Started | ||
|
||
Octokit is available on NuGet. | ||
|
||
``` | ||
Install-Package Octokit | ||
``` | ||
|
||
## Build | ||
|
||
Octokit is a single assembly designed to be easy to deploy anywhere. If you prefer | ||
to compile it yourself, you’ll need: | ||
|
||
* Visual Studio 2012 | ||
* PowerShell 2.0 or greater. _For our build scripts_. | ||
|
||
To clone it locally click the "Clone in Windows" button above or run the | ||
following git commands. | ||
|
||
``` | ||
git clone [email protected]:github/Octokit.net.git Octokit | ||
cd Octokit | ||
.\build.cmd | ||
``` | ||
|
||
## Integration Tests | ||
|
||
Octokit has integration tests that access the GitHub API, but they must be configured before they will be executed. | ||
To configure the tests, create a test GitHub account (i.e., **don't use your real GitHub account**) and then set | ||
the following two environment variables: | ||
|
||
- `OCTOKIT_GITHUBUSERNAME` (set this to the test account's username) | ||
- `OCTOKIT_GITHUBPASSWORD` (set this to the test account's password) | ||
|
||
Once both of these are set, the integration tests will be executed both when running the `FullBuild` MSBuild target, | ||
and when running the `Octokit.Tests.Integration` assembly through an xUnit.net-friendly test runner. | ||
|
||
## Problems? | ||
|
||
Octokit is 100% certified to be bug free. If you find an issue with our | ||
certification, please visit the [issue tracker](https://github.com/github/Octokit/issues) | ||
and report the issue. | ||
|
||
Please be kind and search to see if the issue is already logged before creating | ||
a new one. If you're pressed for time, log it anyways. | ||
|
||
When creating an issue, clearly explain | ||
|
||
* What you were trying to do. | ||
* What you expected to happen. | ||
* What actually happened. | ||
* Steps to reproduce the problem. | ||
|
||
Also include any other information you think is relevant to reproduce the | ||
problem. | ||
|
||
## Contribute | ||
|
||
Visit the [Contributor Guidelines](https://github.com/github/Octokit/blob/master/CONTRIBUTING.md) | ||
for more details. | ||
|
||
## Copyright and License | ||
|
||
Copyright 2013 GitHub, Inc. | ||
|
||
Licensed under the [MIT License](https://github.com/github/Octokit/blob/master/LICENSE.txt) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2012 GitHub, 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 in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so, | ||
subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Octokit - GitHub API Client Library for .NET | ||
|
||
Octokit is a client library targeting .NET 4.0 and above that provides an easy | ||
way to interact with the [GitHub API](http://developer.github.com/v3/). | ||
|
||
## Usage examples | ||
|
||
Get public info on a specific user. | ||
|
||
``` | ||
var github = new GitHubClient(); | ||
var user = await github.User.Get("half-ogre"); | ||
Console.WriteLine(user.Followers + " folks love the half ogre!"); | ||
``` | ||
|
||
## Getting Started | ||
|
||
Octokit is available on NuGet. | ||
|
||
``` | ||
Install-Package Octokit | ||
``` | ||
|
||
## Build | ||
|
||
Octokit is a single assembly designed to be easy to deploy anywhere. If you prefer | ||
to compile it yourself, you’ll need: | ||
|
||
* Visual Studio 2012 | ||
* PowerShell 2.0 or greater. _For our build scripts_. | ||
|
||
To clone it locally click the "Clone in Windows" button above or run the | ||
following git commands. | ||
|
||
``` | ||
git clone [email protected]:github/Octokit.net.git Octokit | ||
cd Octokit | ||
.\build.cmd | ||
``` | ||
|
||
## Integration Tests | ||
|
||
Octokit has integration tests that access the GitHub API, but they must be configured before they will be executed. | ||
To configure the tests, create a test GitHub account (i.e., **don't use your real GitHub account**) and then set | ||
the following two environment variables: | ||
|
||
- `OCTOKIT_GITHUBUSERNAME` (set this to the test account's username) | ||
- `OCTOKIT_GITHUBPASSWORD` (set this to the test account's password) | ||
|
||
Once both of these are set, the integration tests will be executed both when running the `FullBuild` MSBuild target, | ||
and when running the `Octokit.Tests.Integration` assembly through an xUnit.net-friendly test runner. | ||
|
||
## Problems? | ||
|
||
Octokit is 100% certified to be bug free. If you find an issue with our | ||
certification, please visit the [issue tracker](https://github.com/github/Octokit/issues) | ||
and report the issue. | ||
|
||
Please be kind and search to see if the issue is already logged before creating | ||
a new one. If you're pressed for time, log it anyways. | ||
|
||
When creating an issue, clearly explain | ||
|
||
* What you were trying to do. | ||
* What you expected to happen. | ||
* What actually happened. | ||
* Steps to reproduce the problem. | ||
|
||
Also include any other information you think is relevant to reproduce the | ||
problem. | ||
|
||
## Contribute | ||
|
||
Visit the [Contributor Guidelines](https://github.com/github/Octokit/blob/master/CONTRIBUTING.md) | ||
for more details. | ||
|
||
## Copyright and License | ||
|
||
Copyright 2013 GitHub, Inc. | ||
|
||
Licensed under the [MIT License](https://github.com/github/Octokit/blob/master/LICENSE.txt) |
Binary file not shown.
Binary file not shown.
Binary file not shown.