2015-07-04 12:10:11 +00:00
#! /bin/bash
2019-10-28 21:30:08 +00:00
set -e
2017-12-31 18:53:16 +00:00
2019-10-28 21:30:08 +00:00
outputFolder = '_output'
testPackageFolder = '_tests'
2018-06-08 01:13:58 +00:00
2019-10-28 21:30:08 +00:00
#Artifact variables
artifactsFolder = "_artifacts" ;
2015-07-04 12:10:11 +00:00
2017-12-31 18:53:16 +00:00
ProgressStart( )
{
echo " Start ' $1 ' "
}
ProgressEnd( )
{
echo " Finish ' $1 ' "
}
2019-08-22 21:28:51 +00:00
UpdateVersionNumber( )
{
if [ " $LIDARRVERSION " != "" ] ; then
echo "Updating Version Info"
2019-10-28 21:30:08 +00:00
sed -i'' -e " s/<AssemblyVersion>[0-9.*]\+<\/AssemblyVersion>/<AssemblyVersion> $LIDARRVERSION <\/AssemblyVersion>/g " src/Directory.Build.props
sed -i'' -e " s/<AssemblyConfiguration>[\$()A-Za-z-]\+<\/AssemblyConfiguration>/<AssemblyConfiguration> ${ BUILD_SOURCEBRANCHNAME } <\/AssemblyConfiguration>/g " src/Directory.Build.props
sed -i'' -e " s/<string>10.0.0.0<\/string>/<string> $LIDARRVERSION <\/string>/g " macOS/Lidarr.app/Contents/Info.plist
2019-08-22 21:28:51 +00:00
fi
}
2017-10-07 06:21:06 +00:00
LintUI( )
{
ProgressStart 'ESLint'
2019-10-28 21:30:08 +00:00
yarn lint
2017-10-07 06:21:06 +00:00
ProgressEnd 'ESLint'
ProgressStart 'Stylelint'
2019-10-17 20:42:49 +00:00
if [ " $os " = "windows" ] ; then
2019-10-28 21:30:08 +00:00
yarn stylelint-windows
2019-02-16 14:49:24 +00:00
else
2019-10-28 21:30:08 +00:00
yarn stylelint-linux
2019-02-16 14:49:24 +00:00
fi
2017-10-07 06:21:06 +00:00
ProgressEnd 'Stylelint'
}
2015-07-04 12:10:11 +00:00
Build( )
{
2017-12-31 18:53:16 +00:00
ProgressStart 'Build'
2015-07-04 12:10:11 +00:00
rm -rf $outputFolder
2019-08-22 21:28:51 +00:00
rm -rf $testPackageFolder
2015-07-04 12:10:11 +00:00
2020-01-02 02:28:18 +00:00
slnFile = src/Lidarr.sln
2019-10-17 20:42:49 +00:00
if [ $os = "windows" ] ; then
2020-01-02 02:28:18 +00:00
platform = Windows
2015-07-04 12:10:11 +00:00
else
2020-01-02 02:28:18 +00:00
platform = Posix
2015-07-04 12:10:11 +00:00
fi
2016-01-16 06:06:33 +00:00
2019-10-28 21:30:08 +00:00
dotnet clean $slnFile -c Debug
dotnet clean $slnFile -c Release
if [ [ -z " $RID " || -z " $FRAMEWORK " ] ] ;
then
2020-01-02 02:28:18 +00:00
dotnet msbuild -restore $slnFile -p:Configuration= Release -p:Platform= $platform -t:PublishAllRids
2019-10-28 21:30:08 +00:00
else
2020-01-02 02:28:18 +00:00
dotnet msbuild -restore $slnFile -p:Configuration= Release -p:Platform= $platform -p:RuntimeIdentifiers= $RID -t:PublishAllRids
2019-10-28 21:30:08 +00:00
fi
2019-02-22 02:10:39 +00:00
2017-12-31 18:53:16 +00:00
ProgressEnd 'Build'
2015-07-04 12:10:11 +00:00
}
2019-09-12 20:35:22 +00:00
YarnInstall( )
2015-07-04 12:10:11 +00:00
{
2017-12-31 18:53:16 +00:00
ProgressStart 'yarn install'
2020-07-04 04:01:47 +00:00
yarn install --frozen-lockfile --network-timeout 120000
2017-12-31 18:53:16 +00:00
ProgressEnd 'yarn install'
2019-09-12 20:35:22 +00:00
}
2015-07-04 12:10:11 +00:00
2019-09-12 20:35:22 +00:00
RunGulp( )
{
2017-10-07 06:21:06 +00:00
ProgressStart 'Running gulp'
2019-10-28 21:30:08 +00:00
yarn run build --production
2017-10-07 06:21:06 +00:00
ProgressEnd 'Running gulp'
2015-07-04 12:10:11 +00:00
}
2019-10-17 20:42:49 +00:00
PackageFiles( )
2015-07-04 12:10:11 +00:00
{
2019-10-17 20:42:49 +00:00
local folder = " $1 "
local framework = " $2 "
local runtime = " $3 "
2017-12-31 18:53:16 +00:00
2019-10-17 20:42:49 +00:00
rm -rf $folder
mkdir -p $folder
cp -r $outputFolder /$framework /$runtime /publish/* $folder
cp -r $outputFolder /Lidarr.Update/$framework /$runtime /publish $folder /Lidarr.Update
cp -r $outputFolder /UI $folder
2018-12-08 03:04:36 +00:00
2019-10-17 20:42:49 +00:00
echo "Adding LICENSE"
cp LICENSE.md $folder
}
2019-09-12 20:35:22 +00:00
2019-10-17 20:42:49 +00:00
PackageLinux( )
{
local framework = " $1 "
2019-10-28 21:30:08 +00:00
local runtime = " $2 "
2019-10-17 20:42:49 +00:00
2019-10-28 21:30:08 +00:00
ProgressStart " Creating $runtime Package for $framework "
2015-07-04 12:10:11 +00:00
2019-10-28 21:30:08 +00:00
local folder = $artifactsFolder /$runtime /$framework /Lidarr
2015-07-04 12:10:11 +00:00
2019-10-28 21:30:08 +00:00
PackageFiles " $folder " " $framework " " $runtime "
2019-10-17 20:42:49 +00:00
echo "Removing Service helpers"
rm -f $folder /ServiceUninstall.*
rm -f $folder /ServiceInstall.*
2015-07-04 12:10:11 +00:00
2017-10-25 02:31:37 +00:00
echo "Removing Lidarr.Windows"
2019-10-17 20:42:49 +00:00
rm $folder /Lidarr.Windows.*
2015-07-04 12:10:11 +00:00
2017-10-25 02:31:37 +00:00
echo "Adding Lidarr.Mono to UpdatePackage"
2019-10-17 20:42:49 +00:00
cp $folder /Lidarr.Mono.* $folder /Lidarr.Update
2019-12-09 21:59:39 +00:00
if [ " $framework " = "netcoreapp3.1" ] ; then
2019-10-28 21:30:08 +00:00
cp $folder /Mono.Posix.NETStandard.* $folder /Lidarr.Update
cp $folder /libMonoPosixHelper.* $folder /Lidarr.Update
fi
2016-01-16 06:06:33 +00:00
2019-10-28 21:30:08 +00:00
ProgressEnd " Creating $runtime Package for $framework "
2015-07-04 12:10:11 +00:00
}
2018-12-08 03:04:36 +00:00
PackageMacOS( )
2015-07-04 12:10:11 +00:00
{
2019-10-17 20:42:49 +00:00
local framework = " $1 "
ProgressStart " Creating MacOS Package for $framework "
2017-12-31 18:53:16 +00:00
2019-10-17 20:42:49 +00:00
local folder = $artifactsFolder /macos/$framework /Lidarr
PackageFiles " $folder " " $framework " "osx-x64"
2018-12-08 03:04:36 +00:00
2019-10-28 21:30:08 +00:00
if [ " $framework " = "net462" ] ; then
echo "Adding Startup script"
cp macOS/Lidarr $folder
fi
2018-12-08 03:04:36 +00:00
2019-10-17 20:42:49 +00:00
echo "Removing Service helpers"
rm -f $folder /ServiceUninstall.*
rm -f $folder /ServiceInstall.*
echo "Removing Lidarr.Windows"
rm $folder /Lidarr.Windows.*
2015-07-04 12:10:11 +00:00
2019-10-17 20:42:49 +00:00
echo "Adding Lidarr.Mono to UpdatePackage"
cp $folder /Lidarr.Mono.* $folder /Lidarr.Update
2019-12-09 21:59:39 +00:00
if [ " $framework " = "netcoreapp3.1" ] ; then
2019-10-28 21:30:08 +00:00
cp $folder /Mono.Posix.NETStandard.* $folder /Lidarr.Update
cp $folder /libMonoPosixHelper.* $folder /Lidarr.Update
fi
2015-07-04 12:10:11 +00:00
2017-12-31 18:53:16 +00:00
ProgressEnd 'Creating MacOS Package'
2015-07-04 12:10:11 +00:00
}
2018-12-08 03:04:36 +00:00
PackageMacOSApp( )
2015-07-04 12:10:11 +00:00
{
2019-10-17 20:42:49 +00:00
local framework = " $1 "
ProgressStart " Creating macOS App Package for $framework "
2015-07-04 12:10:11 +00:00
2019-10-17 20:42:49 +00:00
local folder = $artifactsFolder /macos-app/$framework
2018-12-08 03:04:36 +00:00
2019-10-17 20:42:49 +00:00
rm -rf $folder
mkdir -p $folder
2019-10-28 21:30:08 +00:00
cp -r macOS/Lidarr.app $folder
2019-10-17 20:42:49 +00:00
mkdir -p $folder /Lidarr.app/Contents/MacOS
2018-12-08 03:04:36 +00:00
echo "Copying Binaries"
2019-10-17 20:42:49 +00:00
cp -r $artifactsFolder /macos/$framework /Lidarr/* $folder /Lidarr.app/Contents/MacOS
2018-12-08 03:04:36 +00:00
echo "Removing Update Folder"
2019-10-17 20:42:49 +00:00
rm -r $folder /Lidarr.app/Contents/MacOS/Lidarr.Update
2017-12-31 18:53:16 +00:00
2018-12-08 03:04:36 +00:00
ProgressEnd 'Creating macOS App Package'
2015-07-04 12:10:11 +00:00
}
2019-10-17 20:42:49 +00:00
PackageWindows( )
2015-07-04 12:10:11 +00:00
{
2019-10-17 20:42:49 +00:00
local framework = " $1 "
2020-11-11 03:56:47 +00:00
local runtime = " $2 "
2019-10-17 20:42:49 +00:00
ProgressStart " Creating Windows Package for $framework "
2020-11-11 03:56:47 +00:00
local folder = $artifactsFolder /$runtime /$framework /Lidarr
2019-10-17 20:42:49 +00:00
2020-11-11 03:56:47 +00:00
PackageFiles " $folder " " $framework " " $runtime "
2017-12-31 18:53:16 +00:00
2017-10-25 02:31:37 +00:00
echo "Removing Lidarr.Mono"
2019-10-17 20:42:49 +00:00
rm -f $folder /Lidarr.Mono.*
2019-10-28 21:30:08 +00:00
rm -f $folder /Mono.Posix.NETStandard.*
rm -f $folder /libMonoPosixHelper.*
2015-07-04 12:10:11 +00:00
2017-10-25 02:31:37 +00:00
echo "Adding Lidarr.Windows to UpdatePackage"
2019-10-17 20:42:49 +00:00
cp $folder /Lidarr.Windows.* $folder /Lidarr.Update
2017-12-31 18:53:16 +00:00
2019-10-17 20:42:49 +00:00
ProgressEnd 'Creating Windows Package'
2015-07-04 12:10:11 +00:00
}
2019-10-28 21:30:08 +00:00
Package( )
{
local framework = " $1 "
local runtime = " $2 "
local SPLIT
IFS = '-' read -ra SPLIT <<< " $runtime "
case " ${ SPLIT [0] } " in
linux)
PackageLinux " $framework " " $runtime "
; ;
win)
2020-11-11 03:56:47 +00:00
PackageWindows " $framework " " $runtime "
2019-10-28 21:30:08 +00:00
; ;
osx)
PackageMacOS " $framework "
PackageMacOSApp " $framework "
; ;
esac
}
PackageTests( )
{
local framework = " $1 "
local runtime = " $2 "
cp test.sh " $testPackageFolder / $framework / $runtime /publish "
rm -f $testPackageFolder /$framework /$runtime /*.log.config
ProgressEnd 'Creating Test Package'
}
2015-07-04 12:10:11 +00:00
# Use mono or .net depending on OS
case " $( uname -s) " in
CYGWIN*| MINGW32*| MINGW64*| MSYS*)
# on windows, use dotnet
2019-10-17 20:42:49 +00:00
os = "windows"
2015-07-04 12:10:11 +00:00
; ;
*)
# otherwise use mono
2019-10-17 20:42:49 +00:00
os = "posix"
2015-07-04 12:10:11 +00:00
; ;
esac
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
2019-08-13 17:15:59 +00:00
POSITIONAL = ( )
2019-09-12 20:35:22 +00:00
if [ $# -eq 0 ] ; then
echo "No arguments provided, building everything"
BACKEND = YES
FRONTEND = YES
PACKAGES = YES
LINT = YES
fi
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
2019-08-13 17:15:59 +00:00
while [ [ $# -gt 0 ] ]
do
key = " $1 "
case $key in
2019-09-12 20:35:22 +00:00
--backend)
BACKEND = YES
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
2019-08-13 17:15:59 +00:00
shift # past argument
; ;
2019-10-28 21:30:08 +00:00
-r| --runtime)
RID = " $2 "
shift # past argument
shift # past value
; ;
-f| --framework)
FRAMEWORK = " $2 "
shift # past argument
shift # past value
; ;
2019-09-12 20:35:22 +00:00
--frontend)
FRONTEND = YES
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
2019-08-13 17:15:59 +00:00
shift # past argument
; ;
2019-09-12 20:35:22 +00:00
--packages)
PACKAGES = YES
shift # past argument
; ;
--lint)
LINT = YES
shift # past argument
; ;
--all)
BACKEND = YES
FRONTEND = YES
PACKAGES = YES
LINT = YES
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
2019-08-13 17:15:59 +00:00
shift # past argument
; ;
*) # unknown option
POSITIONAL += ( " $1 " ) # save it in an array for later
shift # past argument
; ;
esac
done
set -- " ${ POSITIONAL [@] } " # restore positional parameters
2019-10-17 20:42:49 +00:00
if [ " $BACKEND " = "YES" ] ;
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
2019-08-13 17:15:59 +00:00
then
2019-08-22 21:28:51 +00:00
UpdateVersionNumber
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
2019-08-13 17:15:59 +00:00
Build
2019-10-28 21:30:08 +00:00
if [ [ -z " $RID " || -z " $FRAMEWORK " ] ] ;
then
2019-12-09 21:59:39 +00:00
PackageTests "netcoreapp3.1" "win-x64"
2020-11-11 03:56:47 +00:00
PackageTests "netcoreapp3.1" "win-x86"
2019-12-09 21:59:39 +00:00
PackageTests "netcoreapp3.1" "linux-x64"
2020-07-26 20:52:27 +00:00
PackageTests "netcoreapp3.1" "linux-musl-x64"
2019-12-09 21:59:39 +00:00
PackageTests "netcoreapp3.1" "osx-x64"
2019-10-28 21:30:08 +00:00
PackageTests "net462" "linux-x64"
else
PackageTests " $FRAMEWORK " " $RID "
fi
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
2019-08-13 17:15:59 +00:00
fi
2019-10-17 20:42:49 +00:00
if [ " $FRONTEND " = "YES" ] ;
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
2019-08-13 17:15:59 +00:00
then
2019-09-12 20:35:22 +00:00
YarnInstall
RunGulp
fi
2019-10-17 20:42:49 +00:00
if [ " $LINT " = "YES" ] ;
2019-09-12 20:35:22 +00:00
then
if [ -z " $FRONTEND " ] ;
then
YarnInstall
fi
LintUI
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
2019-08-13 17:15:59 +00:00
fi
2019-10-17 20:42:49 +00:00
if [ " $PACKAGES " = "YES" ] ;
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
2019-08-13 17:15:59 +00:00
then
2019-09-08 00:40:23 +00:00
UpdateVersionNumber
2019-10-28 21:30:08 +00:00
if [ [ -z " $RID " || -z " $FRAMEWORK " ] ] ;
then
2019-12-09 21:59:39 +00:00
Package "netcoreapp3.1" "win-x64"
2020-11-11 03:56:47 +00:00
Package "netcoreapp3.1" "win-x86"
2019-12-09 21:59:39 +00:00
Package "netcoreapp3.1" "linux-x64"
2020-07-26 20:52:27 +00:00
Package "netcoreapp3.1" "linux-musl-x64"
2019-12-09 21:59:39 +00:00
Package "netcoreapp3.1" "linux-arm64"
2020-07-26 20:52:27 +00:00
Package "netcoreapp3.1" "linux-musl-arm64"
2019-12-09 21:59:39 +00:00
Package "netcoreapp3.1" "linux-arm"
Package "netcoreapp3.1" "osx-x64"
2019-10-28 21:30:08 +00:00
Package "net462" "linux-x64"
else
Package " $FRAMEWORK " " $RID "
fi
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
2019-08-13 17:15:59 +00:00
fi