diff --git a/Verify.cmd b/Verify.cmd new file mode 100644 index 0000000000000..58ccae499b6e3 --- /dev/null +++ b/Verify.cmd @@ -0,0 +1,2 @@ +@echo off +powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0eng\build.ps1""" -build -restore -rebuild -pack -test -runAnalyzers -warnAsError %*" diff --git a/verify.sh b/verify.sh new file mode 100644 index 0000000000000..a1eb7e20adfc7 --- /dev/null +++ b/verify.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +source="${BASH_SOURCE[0]}" + +# resolve $SOURCE until the file is no longer a symlink +while [[ -h $source ]]; do + scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" + source="$(readlink "$source")" + + # if $source was a relative symlink, we need to resolve it relative to the path where the + # symlink file was located + [[ $source != /* ]] && source="$scriptroot/$source" +done + +scriptroot="$( cd -P "$( dirname "$source" )" && pwd )" +"$scriptroot/eng/build.sh" --build --restore --rebuild --pack --test --runAnalyzers --warnAsError $@ \ No newline at end of file