mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Add poor man's nuget build script
We'll make this better later. I promise.
This commit is contained in:
20
Octokit.Reactive.nuspec
Normal file
20
Octokit.Reactive.nuspec
Normal file
@@ -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>
|
||||
17
Octokit.nuspec
Normal file
17
Octokit.nuspec
Normal file
@@ -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>
|
||||
@@ -14,6 +14,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{CEC9D451
|
||||
script\cibuild.ps1 = script\cibuild.ps1
|
||||
CustomDictionary.xml = CustomDictionary.xml
|
||||
Octokit.msbuild = Octokit.msbuild
|
||||
octokit.nuspec = octokit.nuspec
|
||||
Octokit.Reactive.nuspec = Octokit.Reactive.nuspec
|
||||
Octokit.ruleset = Octokit.ruleset
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
||||
@@ -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")]
|
||||
|
||||
31
build.cmd
31
build.cmd
@@ -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
|
||||
BIN
packaging/Octokit.0.1.0.nupkg
Normal file
BIN
packaging/Octokit.0.1.0.nupkg
Normal file
Binary file not shown.
BIN
packaging/Octokit.Reactive.0.1.0.nupkg
Normal file
BIN
packaging/Octokit.Reactive.0.1.0.nupkg
Normal file
Binary file not shown.
19
packaging/octokit.reactive/LICENSE.txt
Normal file
19
packaging/octokit.reactive/LICENSE.txt
Normal file
@@ -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.
|
||||
|
||||
81
packaging/octokit.reactive/README.md
Normal file
81
packaging/octokit.reactive/README.md
Normal file
@@ -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 git@github.com: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)
|
||||
BIN
packaging/octokit.reactive/lib/net45/Octokit.Reactive.dll
Normal file
BIN
packaging/octokit.reactive/lib/net45/Octokit.Reactive.dll
Normal file
Binary file not shown.
19
packaging/octokit/LICENSE.txt
Normal file
19
packaging/octokit/LICENSE.txt
Normal file
@@ -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.
|
||||
|
||||
81
packaging/octokit/README.md
Normal file
81
packaging/octokit/README.md
Normal file
@@ -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 git@github.com: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)
|
||||
BIN
packaging/octokit/lib/net45/Octokit.dll
Normal file
BIN
packaging/octokit/lib/net45/Octokit.dll
Normal file
Binary file not shown.
BIN
packaging/octokit/lib/netcore45/OctokitRT.dll
Normal file
BIN
packaging/octokit/lib/netcore45/OctokitRT.dll
Normal file
Binary file not shown.
BIN
tools/nuget/NuGet.exe
Normal file
BIN
tools/nuget/NuGet.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user