Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
23 changes: 18 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
language: csharp
dotnet: 2.1.803
solution: CSharpHTTPClient/CSharpHTTPClient.sln
env:
matrix:
secure: KJrQ+NfmzlgCSXRyqeAMDGZUG6GO4/+xk1T0wGy1BgVz8seo/fDWL8osWEljB4Sj05sfFj7CM+rociwL6sdVyqCiHbCAM7XuHs58D+4Tlh5pGHL+G1qOl65/pDl0ulq+M7PwDxHPZ60/oyH2a16t5jtD9e4W31y2fXzEbHGLHXg=
os: linux
dist: bionic
mono: latest
sudo: required

before_install:
- mkdir -p .nuget
- wget -O .nuget/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe

before_script:
# https://github.com/dotnet/sdk/issues/335
- if test "$TRAVIS_OS_NAME" == "osx"; then export FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/Current/lib/mono/4.5/; else export FrameworkPathOverride=/usr/lib/mono/4.5/; fi

script:
- make test

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

deploy:
skip_cleanup: true
provider: script
script: nuget push ./CSharpHTTPClient/bin/Release/*.nupkg -ApiKey $NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
on:
branch: master
tags: true
after_success:
- bash <(curl -s https://codecov.io/bash)
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install:
test: install
xbuild /p:Configuration=Release CSharpHTTPClient/CSharpHTTPClient.sln
mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe UnitTest/bin/Release/UnitTest.dll -domain:None
nuget pack CSharpHTTPClient/CSharpHTTPClient.csproj -Properties Configuration=Release
curl -s https://codecov.io/bash > .codecov
chmod +x .codecov
./.codecov