Files
runner-images/images/win/scripts/Installers/Validate-Julia.ps1
T

26 lines
731 B
PowerShell
Raw Normal View History

2020-02-09 19:37:43 +01:00
################################################################################
## File: Validate-Julia.ps1
## Desc: Validate Julia
################################################################################
# Verify that julia.exe is on the path
2020-04-15 10:24:45 +03:00
if((Get-Command -Name 'julia') -and (Test-Path -Path 'C:\Julia'))
2020-02-09 19:37:43 +01:00
{
Write-Host "$(julia --version) is on the path."
}
else
{
Write-Host "Julia is not on the path."
exit 1
}
2020-02-11 13:35:42 +01:00
# Add description of the software to Markdown
2020-02-09 19:37:43 +01:00
$SoftwareName = "Julia (x64)"
2020-02-12 15:03:26 +01:00
$juliaVersion = $(julia --version).split() -match "\d+\.\d+\.\d+"
2020-02-09 19:37:43 +01:00
2020-02-11 13:35:42 +01:00
$Description = @"
_Version:_ $juliaVersion<br/>
"@
2020-02-09 19:37:43 +01:00
2020-02-11 13:35:42 +01:00
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description