From 028da6ce840f2edbb27c213b984e1088b63b6a6f Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Thu, 26 May 2016 10:07:02 +1000 Subject: [PATCH] Bash script for dotnet core. --- build.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/build.sh b/build.sh index 2f97f1ba0..ef9dcc392 100755 --- a/build.sh +++ b/build.sh @@ -1,14 +1,14 @@ -for path in src/*/project.json; do - dirname="$(dirname "${path}")" - dnu restore ${dirname} - dnu build ${dirname} --framework dotnet5.4 --configuration Release --out .\artifacts\testbin; - dnu pack ${dirname} --framework dotnet5.4 --configuration Release --out .\artifacts\packages; -done - -for path in test/*/project.json; do - dirname="$(dirname "${path}")" - dnu restore ${dirname} - dnu build ${dirname} --framework dotnet5.4 --configuration Release --out .\artifacts\testbin; - dnx -p ${dirname} test; -done +#!/bin/bash +dotnet restore + +cd src/Serilog/ + +dotnet build -f netstandard1.0 -c Release +dotnet build -f netstandard1.3 -c Release + +cd ../.. +cd test/Serilog.Tests/ + +dotnet build -f netcoreapp1.0 -c Release +dotnet test -f netcoreapp1.0 -c Release \ No newline at end of file