forked from fredimachado/NetIRC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (38 loc) · 1.28 KB
/
.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
29
30
31
32
33
34
35
36
37
38
language: csharp
mono: latest
dotnet: 3.1
jobs:
include:
- stage: "Build"
if: branch != docs
install: dotnet restore
script: dotnet build
- stage: "Generate Documentation"
if: branch = master OR branch = docs
install:
- dotnet restore
- nuget install docfx.console -Version $DOCFX_VERSION
script:
- mono ./docfx.console.$DOCFX_VERSION/tools/docfx.exe metadata docfx_project/docfx.json
- mono ./docfx.console.$DOCFX_VERSION/tools/docfx.exe build docfx_project/docfx.json
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: docfx_project/_site
fqdn: gravyirc.halomademeapc.com
on:
branch:
- master
- stage: "Run Tests"
if: branch != master AND branch != docs
install: dotnet restore
script: dotnet test tests/GravyIrc.Tests/GravyIrc.Tests.csproj --verbosity detailed
- stage: "Publish to NuGet"
if: branch = master
install: dotnet restore
script:
- dotnet build
- dotnet publish -c release
- dotnet pack -c release --include-symbols -o publish
- dotnet nuget push publish/*.nupkg --skip-duplicate -k $NUGET_TOKEN -s https://api.nuget.org/v3/index.json