mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
Fixed: Don't fail build on test failure (#173)
* Fixed: Don't fail build on test failure This sets Appveyor up to use the original build.sh and test.sh scripts. Enables tests for Travis Add frontend linting checks to Appveyor builds Add Failed Tests message to Appveyor builds Fix windows installer naming Fix a few UI issues causing eslint and stylelint to fail * fixup! forgot one ui fix. * fixup! Inno doesn't like appveyor appending string to pr version * fixup! It's too late, my brain is mush
This commit is contained in:
23
test.sh
23
test.sh
@@ -13,11 +13,19 @@ fi
|
||||
rm -f "$TEST_LOG_FILE"
|
||||
|
||||
# Uncomment to log test output to a file instead of the console
|
||||
# export LIDARR_TESTS_LOG_OUTPUT="File"
|
||||
export LIDARR_TESTS_LOG_OUTPUT="File"
|
||||
|
||||
NUNIT="$TEST_DIR/NUnit.ConsoleRunner.3.2.0/tools/nunit3-console.exe"
|
||||
NUNIT_COMMAND="$NUNIT"
|
||||
NUNIT_PARAMS="--teamcity --workers=1"
|
||||
if [[ -z "${APPVEYOR}" ]]; then
|
||||
NUNIT="$TEST_DIR/NUnit.ConsoleRunner.3.7.0/tools/nunit3-console.exe"
|
||||
NUNIT_COMMAND="$NUNIT"
|
||||
NUNIT_PARAMS="--workers=1"
|
||||
else
|
||||
NUNIT="nunit3-console"
|
||||
NUNIT_COMMAND="$NUNIT"
|
||||
NUNIT_PARAMS="--result=myresults.xml;format=AppVeyor --workers=1"
|
||||
unset TMP
|
||||
unset TEMP
|
||||
fi
|
||||
|
||||
if [ "$PLATFORM" = "Windows" ]; then
|
||||
WHERE="$WHERE && cat != LINUX"
|
||||
@@ -51,7 +59,12 @@ $NUNIT_COMMAND --where "$WHERE" $NUNIT_PARAMS $ASSEMBLIES;
|
||||
EXIT_CODE=$?
|
||||
|
||||
if [ "$EXIT_CODE" -ge 0 ]; then
|
||||
echo "Failed tests: $EXIT_CODE"
|
||||
if [[ -z "${APPVEYOR}" ]]; then
|
||||
echo "Failed tests: $EXIT_CODE"
|
||||
else
|
||||
echo "Failed tests: $EXIT_CODE"
|
||||
appveyor AddMessage "Failed tests: $EXIT_CODE"
|
||||
fi
|
||||
exit 0
|
||||
else
|
||||
exit $EXIT_CODE
|
||||
|
||||
Reference in New Issue
Block a user