-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
138 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@ECHO OFF | ||
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0test.ps1' default-build %*; exit $LASTEXITCODE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
$result = 0 | ||
$errorColor = "Red" | ||
$successColor = "Green" | ||
|
||
pushd dotnetcore-acquisition-library | ||
if (Test-Path node_modules) { rm -r -force node_modules } | ||
npm install --silent | ||
npm run test | ||
|
||
if (! $?) | ||
{ | ||
Write-Host "`nAcquisition Library Tests Failed.`n" -ForegroundColor $errorColor | ||
$result = 1 | ||
} | ||
else | ||
{ | ||
Write-Host "`nAcquisition Library Tests Succeeded.`n" -ForegroundColor $successColor | ||
} | ||
popd | ||
|
||
pushd dotnetcore-acquisition-extension | ||
if (Test-Path node_modules) { rm -r -force node_modules } | ||
npm install --silent | ||
npm run test | ||
|
||
if (! $?) | ||
{ | ||
Write-Host "`nAcquisition Extension Tests Failed.`n" -ForegroundColor $errorColor | ||
$result = 1 | ||
} | ||
else | ||
{ | ||
Write-Host "`nAcquisition Extension Tests Succeeded.`n" -ForegroundColor $successColor | ||
} | ||
popd | ||
|
||
if ($result -ne 0) | ||
{ | ||
Write-Host "`n`nTests Failed.`n" -ForegroundColor $errorColor | ||
exit $result | ||
} | ||
else | ||
{ | ||
Write-Host "`n`nAll Tests Succeeded.`n" -ForegroundColor $successColor | ||
exit $result | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
RESULT=0 | ||
RED=`tput setaf 1` | ||
GREEN=`tput setaf 2` | ||
NC=`tput sgr0` | ||
|
||
echo "" | ||
echo "----------- Testing dotnetcore-acquisition-library -----------" | ||
echo "" | ||
pushd dotnetcore-acquisition-library | ||
rm -rf node_modules | ||
npm install | ||
npm run test | ||
|
||
if [ $? -ne 0 ]; | ||
then | ||
echo "" | ||
echo "${RED}Acquisition Library Tests Failed.${NC}" | ||
echo "" | ||
RESULT=1 | ||
else | ||
echo "" | ||
echo "${GREEN}Acquisition Library Tests Succeeded.${NC}" | ||
echo "" | ||
fi | ||
popd | ||
|
||
echo "" | ||
echo "----------- Testing dotnetcore-acquisition-extension -----------" | ||
echo "" | ||
pushd dotnetcore-acquisition-extension | ||
rm -rf node_modules | ||
npm install | ||
npm run test | ||
|
||
if [ $? -ne 0 ]; | ||
then | ||
echo "" | ||
echo "${RED}Acquisition Extension Tests Failed.${NC}" | ||
echo "" | ||
RESULT=1 | ||
else | ||
echo "" | ||
echo "${GREEN}Acquisition Extension Tests Succeeded.${NC}" | ||
echo "" | ||
fi | ||
popd | ||
|
||
if [ $RESULT -ne 0 ]; | ||
then | ||
echo "" | ||
echo "" | ||
echo "${RED}Tests Failed.${NC}" | ||
echo "" | ||
exit $RESULT | ||
else | ||
echo "" | ||
echo "" | ||
echo "${GREEN}All Tests Succeeded.${NC}" | ||
echo "" | ||
exit $RESULT | ||
fi |