|
|
|
#! /bin/bash
|
|
|
|
PLATFORM=$1
|
|
|
|
TYPE=$2
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
COVERAGE=$3
|
|
|
|
WHERE="Category!=ManualTest"
|
|
|
|
TEST_PATTERN="*Test.dll"
|
|
|
|
FILES=( "Lidarr.Api.Test.dll" "Lidarr.Automation.Test.dll" "Lidarr.Common.Test.dll" "Lidarr.Core.Test.dll" "Lidarr.Host.Test.dll" "Lidarr.Integration.Test.dll" "Lidarr.Libraries.Test.dll" "Lidarr.Mono.Test.dll" "Lidarr.Update.Test.dll" "Lidarr.Windows.Test.dll" )
|
|
|
|
ASSMEBLIES=""
|
|
|
|
TEST_LOG_FILE="TestLog.txt"
|
|
|
|
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
echo "test dir: $TEST_DIR"
|
|
|
|
if [ -z "$TEST_DIR" ]; then
|
|
|
|
TEST_DIR="."
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -d "$TEST_DIR/_tests" ]; then
|
|
|
|
TEST_DIR="$TEST_DIR/_tests"
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -f "$TEST_LOG_FILE"
|
|
|
|
|
|
|
|
# Uncomment to log test output to a file instead of the console
|
|
|
|
export LIDARR_TESTS_LOG_OUTPUT="File"
|
|
|
|
|
|
|
|
VSTEST_PARAMS="--Platform:x64 --logger:nunit;LogFilePath=TestResult.xml"
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
|
|
|
|
if [ "$PLATFORM" = "Mac" ]; then
|
|
|
|
|
|
|
|
export DYLD_FALLBACK_LIBRARY_PATH="$TEST_DIR:$MONOPREFIX/lib:/usr/local/lib:/lib:/usr/lib"
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
echo $DYLD_FALLBACK_LIBRARY_PATH
|
|
|
|
mono --version
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
|
|
|
|
# To debug which libraries are being loaded:
|
|
|
|
# export DYLD_PRINT_LIBRARIES=YES
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$PLATFORM" = "Windows" ]; then
|
|
|
|
mkdir -p "$ProgramData/Lidarr"
|
|
|
|
WHERE="$WHERE&Category!=LINUX"
|
|
|
|
elif [ "$PLATFORM" = "Linux" ] || [ "$PLATFORM" = "Mac" ] ; then
|
|
|
|
mkdir -p ~/.config/Lidarr
|
|
|
|
WHERE="$WHERE&Category!=WINDOWS"
|
|
|
|
else
|
|
|
|
echo "Platform must be provided as first arguement: Windows, Linux or Mac"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$TYPE" = "Unit" ]; then
|
|
|
|
WHERE="$WHERE&Category!=IntegrationTest&Category!=AutomationTest"
|
|
|
|
elif [ "$TYPE" = "Integration" ] || [ "$TYPE" = "int" ] ; then
|
|
|
|
WHERE="$WHERE&Category=IntegrationTest"
|
|
|
|
elif [ "$TYPE" = "Automation" ] ; then
|
|
|
|
WHERE="$WHERE&Category=AutomationTest"
|
|
|
|
else
|
|
|
|
echo "Type must be provided as second argument: Unit, Integration or Automation"
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
|
|
|
|
for i in "${FILES[@]}";
|
|
|
|
do ASSEMBLIES="$ASSEMBLIES $TEST_DIR/$i"
|
|
|
|
done
|
|
|
|
|
|
|
|
DOTNET_PARAMS="$ASSEMBLIES --TestCaseFilter:$WHERE $VSTEST_PARAMS"
|
|
|
|
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
if [ "$COVERAGE" = "Coverage" ]; then
|
|
|
|
dotnet vstest $DOTNET_PARAMS --settings:"src/coverlet.runsettings" --ResultsDirectory:./CoverageResults
|
|
|
|
EXIT_CODE=$?
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
elif [ "$COVERAGE" = "Test" ] ; then
|
|
|
|
dotnet vstest $DOTNET_PARAMS
|
New: Set up CI with Azure Pipelines (#897)
* Set up CI with Azure Pipelines
[skip ci]
* Remove Travis, Build Multiple Environments
* Change Task Type to Bash
* Checkout submodules
* Remove Appveyor Tests, Add Azure Tests
* Oops Forget Steps
* bad name
* test script fixes
* add tests to build job
* fixup tests
* name test runs
* fpcalc and artifacts
* Try to fix installer
* Publish separately
* Try publish
* Another go at artifacts
* Tidy up
* Add sentry, assembly info patching and bump version
* Only patch one AssemblyInfo; set node version 10
* Try pipeline artifacts again
* Tidy up - pipeline artifact seems to be way forward
* Fix installer publish
* first go at test job seperation
* job names and depends/consitions for tests
* pusblish single file test artifact
* pipeline artifact for test
* blitz the pattern filter
* windows test jobs
* mac tests, checkout on test jobs
* try to download build artifact to test job
* download and extract artifact
* Set LD_LIBRARY_PATH and print some sqlite debug info on mac tests
* fixup! tests
* integration test fixes
* fixup! integration test fixes
* fixup! integration test fixes
* more fixup
* use bash cp
* test fixups
* mkdir before copy
* linux works! add osx integration tests
* im tooo tired
* coverage attempt
* coverage seperate stage
* windows paths for integration test
* switch coverage to windows where opencover actually works
* fix test script
* one last go
* Simplify installer, try to fix name
* Try to parallelize backend and frontend build
* Try adding a matrix
* Try matrix jobs not stages
* Try to fix package step
* Remove opencover install
* Try to fix tests
* coverage fixes
* revert build.sh changes
* triggers so we don't double build
* Publish coverage package so we can debug
* try coverage no build, output artifact
* use the full pipeline workspace from build job
* fix automation tests for new ui
* Assorted fix attempts
* Another go
* MacOS debug
* Tidy up, try to fix mac
* Fix mac fpcalc, add mac integration tests
* Add cross platform automation tests
* Fix packages
* Try to fix Automation tests
* Don't wait on the installer to create standard packages
* Fixes
* delete logentries reference
* run automation tests in headless mode
* try install firefox mac
* Revert "try install firefox mac"
This reverts commit 4684bb19018747cb00407e1d8df64391f44f5183.
* test sonarcloud prepare outputs
* basic analyze and upload
* don't limit fetch depth on analyze
* manual scanner do front and backend?
* full analyize with tests, coverage
* should depend on tests, coverage
* no need for condition on coverage
* Fix up build numbering
* Try to fix sonar
* Separate coverage calculation and publication
* Try to fix coverage upload
5 years ago
|
|
|
EXIT_CODE=$?
|
|
|
|
else
|
|
|
|
echo "Run Type must be provided as third argument: Coverage or Test"
|
|
|
|
exit 3
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$EXIT_CODE" -ge 0 ]; then
|
|
|
|
echo "Failed tests: $EXIT_CODE"
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
exit $EXIT_CODE
|
|
|
|
fi
|