forked from serilog/serilog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·26 lines (21 loc) · 880 Bytes
/
build.sh
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
#!/bin/bash
export DOTNET_INSTALL_DIR="$PWD/.dotnetcli"
DotnetCliVersion=${CLI_VERSION:="1.0.0"}
install_script_url=https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.sh
curl -sSL $install_script_url | bash /dev/stdin --version "$DotnetCliVersion" --install-dir "$DOTNET_INSTALL_DIR"
export PATH="$DOTNET_INSTALL_DIR:$PATH"
# See issue https://github.com/NuGet/Home/issues/2163
ulimit -n 2048
dotnet --info
dotnet restore
for path in src/**/*.csproj; do
dotnet build -f netstandard1.0 -c Release ${path}
dotnet build -f netstandard1.3 -c Release ${path}
done
for path in test/*.Tests/*.csproj; do
dotnet test -f netcoreapp1.0 -c Release ${path}
done
for path in test/*.PerformanceTests/*.PerformanceTests.csproj; do
dotnet build -f netcoreapp1.1 -c Release ${path}
# dotnet test -f netcoreapp1.1 -c Release ${path}
done