forked from AlexGhiondea/ZenHub.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·34 lines (28 loc) · 710 Bytes
/
build.sh
File metadata and controls
executable file
·34 lines (28 loc) · 710 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
26
27
28
29
30
31
32
33
34
#!/bin/bash
if [ "$#" -eq 0 ]
then
_config=Debug
else
_config=$1
fi
echo --------------------------
echo !!! Restoring packages !!!
echo --------------------------
dotnet restore
echo -------------------------
echo !!! Cleaning solution !!!
echo -------------------------
dotnet clean -c $_config
echo -------------------------
echo !!! Building solution !!!
echo -------------------------
dotnet build -c $_config
echo ---------------------
echo !!! Running tests !!!
echo ---------------------
dotnet test --no-build -c $_config tests/ZenHub.Tests.csproj
echo ------------------------------
echo !!! Creating NuGet package !!!
echo ------------------------------
dotnet pack -c $_config
echo on