forked from microting/eform-items-group-planning-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
18 lines (18 loc) · 866 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dist: xenial
language: csharp
solution: Microting.ItemsGroupPlanningBase.sln
mono: none
dotnet: 3.1.101
addons:
chrome: stable
mariadb: '10.5'
script:
- sudo mysql -e 'ALTER USER root@localhost IDENTIFIED VIA mysql_native_password'
- dotnet build Microting.ItemsGroupPlanningBase.sln
- dotnet test -v n Microting.ItemsGroupPlanningBase.Tests/Microting.ItemsGroupPlanningBase.Tests.csproj
- export GITVERSION=`git describe --abbrev=0 --tags | cut -d "v" -f 2`
- echo $GITVERSION
- dotnet pack Microting.ItemsGroupPlanningBase.sln -c Release -o ./artifacts -p:PackageVersion=$GITVERSION
- export FILENAME="/home/travis/build/microting/eform-items-group-planning-base/artifacts/Microting.ItemsGroupPlanningBase.${GITVERSION}.nupkg"
- echo $FILENAME
- dotnet nuget push $FILENAME -k $NUGET_SECRET_KEY -s https://api.nuget.org/v3/index.json || true