#!/bin/bash


function check_availability() {
    binary=$1
    which $binary 2>&1 > /dev/null
    if [ $? -ne 0 ]; then
	echo "$binary could not be found in PATH"
        exit 1
    fi
}

src="Criteo.Profiling.Tracing"
tests="Criteo.Profiling.Tracing.UTest"

check_availability "dotnet"

dotnet restore
dotnet build $src
dotnet build $tests
dotnet test $tests

#!/bin/bash


function check_availability() {
    binary=$1
    which $binary 2>&1 > /dev/null
    if [ $? -ne 0 ]; then
	echo "$binary could not be found in PATH"
        exit 1
    fi
}

src="Criteo.Profiling.Tracing"
tests="Criteo.Profiling.Tracing.UTest"

check_availability "dotnet"

dotnet restore         \
&& dotnet build $src   \
&& dotnet build $tests \
&& dotnet test $tests  \

Make the compilation status clear.
Make the compilation status clear.

The compilation could pass with errors.
It's not the case anymore
