forked from null511/Jenkins.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (24 loc) · 802 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: csharp
mono: 5.2.0
dotnet: 2.0.0
install:
- export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.5/
#- curl -L -o nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- dotnet restore
script:
- dotnet build -c Debug --no-restore -v m
#- dotnet test Jenkins.Net.Tests/Jenkins.Net.Tests.csproj -c Debug --no-build --filter Category=Unit
- dotnet pack Jenkins.Net/Jenkins.Net.csproj -c Debug --no-build --no-restore -o bin
deploy:
provider: releases
api_key: $GITHUB_APIKEY
file: "Jenkins.Net/bin/jenkinsnet.*.nupkg"
skip_cleanup: true
on:
tags: true
# deploy:
# skip_cleanup: true
# provider: script
# script: dotnet nuget push Jenkins.Net/bin/jenkinsnet.*.nupkg -k $NUGET_APIKEY -s $NUGET_SOURCE
# on:
# branch: master