-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
20 lines (17 loc) · 726 Bytes
/
.travis.yml
File metadata and controls
20 lines (17 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: csharp
mono: none
dotnet: 2.2
os: linux
dist: xenial
git:
depth: false
before_install:
- curl -sL https://github.com/annymsMthd/gogitver/releases/download/0.5.1/linux.tar.gz | tar zx
before_script:
- git fetch -tv
- git fetch origin master:master
script:
- dotnet restore || travis_terminate 1
- dotnet test --no-restore tests/DestructureExtensions.Tests || travis_terminate 1
- dotnet pack --no-restore src/DestructureExtensions --configuration Release /p:Version=$(./gogitver) || travis_terminate 1
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then dotnet nuget push src/DestructureExtensions/bin/Release/*.nupkg -s https://www.nuget.org/api/v2/package -k $NUGET_API_KEY || travis_terminate 1; fi