Skip to content

Commit

Permalink
Removed Docker from build process and switched to use MSTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel James committed Dec 22, 2017
1 parent 521947b commit 111a24e
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 592 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
bin
obj
tools
tools-container
src/CloudMQTT.Client/AssemblyInfo.cs
packages
21 changes: 8 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
language: csharp

os: linux # Ubuntu 14.04
os: linux
dist: trusty
group: edge
sudo: required
dotnet: 2.0.0

services:
- docker

script:
- ./build.sh

deploy:
provider: script
script:
- ./build.sh -t Publish
on:
branch: master
- dotnet restore
- dotnet build --configuration Release
- dotnet test src/CloudMQTT.Client.Tests
- "if [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_TAG ]]; then
dotnet pack src/CloudMQTT.Client --configuration Release /p:Version=$TRAVIS_TAG;
dotnet nuget push src/CloudMQTT.Client/bin/Release/*.nupkg -s https://www.nuget.org/api/v2/package -k $NUGET_API_KEY;
fi"
21 changes: 0 additions & 21 deletions LICENSE.md

This file was deleted.

13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,19 @@ var users = await _subject.GetUsers(); // Gets a list of MQTT users for the inst
[![NuGet](https://img.shields.io/nuget/v/CloudMQTT.Client.svg)](https://www.nuget.org/packages/CloudMQTT.Client/)
[![NuGet Pre Release](https://img.shields.io/nuget/vpre/CloudMQTT.Client.svg)](https://www.nuget.org/packages/CloudMQTT.Client/)

This project uses Cake and Docker to build the client.
Ensure you have [installed .NET Core](https://www.microsoft.com/net/core)

On macOS or Linux:
To build a local/development copy, run the following:

```bash
./build.sh
dotnet restore
dotnet build
```

On Windows:
To run the tests, you'll need a CloudMQTT instance's username and password. If you don't have an instance, you can [sign up for free](https://www.cloudmqtt.com/plans.html). Note, the username and password are usually randomly-generated. (i.e., not the same as the credentials you log in to the CloudMQTT site with.)

```powershell
.\build.ps1 -Experimental
```bash
CLOUDMQTT_USER=ajeamalr CLOUDMQTT_PASSWORD=uwjamd3k_uma dotnet test
```

## Code of Conduct
Expand Down
87 changes: 0 additions & 87 deletions build.cake

This file was deleted.

Loading

0 comments on commit 111a24e

Please sign in to comment.