-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
25 lines (25 loc) · 744 Bytes
/
.travis.yml
File metadata and controls
25 lines (25 loc) · 744 Bytes
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
language: csharp
mono: none
dotnet: 3.1.200
dist: bionic
notifications:
email:
on_success: never
on_failure: always
env:
- PACKAGE_VERSION=2.0.$TRAVIS_BUILD_NUMBER
services:
- postgresql
postgres:
username: postgres
password: postgres
script:
- dotnet build src/Badger.Data.sln -c Release
- dotnet test src/Badger.Data.Tests/Badger.Data.Tests.csproj -c Release --filter ExcludeFromTravis!=True
- dotnet pack src/Badger.Data/Badger.Data.csproj -c Release -o nuget -p:PackageVersion=$PACKAGE_VERSION -p:FileVersion=$PACKAGE_VERSION
deploy:
skip_cleanup: true
provider: script
script: dotnet nuget push nuget/Badger.Data.*.nupkg -k $NUGET_KEY -s https://nuget.org
on:
branch: master