aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/windows/appveyor
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-01-15 07:31:59 +0100
committerGitHub <noreply@github.com>2021-01-15 07:31:59 +0100
commitd890f27e480cdb37428f1b7c4bb37475ed38348d (patch)
treeef94e9ac91446f661ede0db86cb295e9ec903477 /scripts/windows/appveyor
parent4868294436574660552ccef50a5b0849559393de (diff)
downloadghdl-d890f27e480cdb37428f1b7c4bb37475ed38348d.tar.gz
ghdl-d890f27e480cdb37428f1b7c4bb37475ed38348d.tar.bz2
ghdl-d890f27e480cdb37428f1b7c4bb37475ed38348d.zip
Reworking pre-compile scripts for Windows (#1594)
* Updated pre-compile scripts for OSVVM. * Reworked script for Vivado. * Reworked script for ISE. * Reworked UVVM compile script. Cannot be tested due to missing feature in GHDL see #1593. * Reworked scripts for Altera, Intel and Lattice. * Updated module imports. * Adjusted warnings. * Read OSVVM package files from compile-order file 'osvvm.pro'. * Support OSVVM and OSVVMLibraries as source directory. * Added support for OSVVM models to precompile script. * First update to the pre-compile scripts documentation. * Minimized file headers and redundant documentation. Using PowerShell's feature to document files, functions and modules. * Updated README in precompile scripts directory. * license: update headers of pyGHDL, scripts/windows, libraries/vendors * Fixed ForegroundColor and InvocationName. Co-authored-by: umarcor <unai.martinezcorral@ehu.eus>
Diffstat (limited to 'scripts/windows/appveyor')
-rw-r--r--scripts/windows/appveyor/build.ps110
-rw-r--r--scripts/windows/appveyor/info.ps116
-rw-r--r--scripts/windows/appveyor/install.ps116
-rw-r--r--scripts/windows/appveyor/test.ps118
4 files changed, 30 insertions, 30 deletions
diff --git a/scripts/windows/appveyor/build.ps1 b/scripts/windows/appveyor/build.ps1
index 359fb4da7..16f4d79ea 100644
--- a/scripts/windows/appveyor/build.ps1
+++ b/scripts/windows/appveyor/build.ps1
@@ -74,23 +74,23 @@ $env:GHDL_PREFIX_DIR = $GHDL_PREFIX_DIR
mkdir $GHDL_BUILD_DIR | cd
if ($env:BUILD_BACKEND -eq "mcode")
-{ Write-Host "Configuring GHDL for $($env:BUILD_MINGW), mcode..." -Foreground Yellow
+{ Write-Host "Configuring GHDL for $($env:BUILD_MINGW), mcode..." -ForegroundColor Yellow
c:\msys64\usr\bin\bash.exe -c "../../configure --prefix=$GHDL_PREFIX_DIR LDFLAGS=-static" 2>&1 | Restore-NativeCommandStream | %{ "$_" }
}
elseif ($env:BUILD_BACKEND -eq "llvm")
-{ Write-Host "Configuring GHDL for $($env:BUILD_MINGW), LLVM..." -Foreground Yellow
+{ Write-Host "Configuring GHDL for $($env:BUILD_MINGW), LLVM..." -ForegroundColor Yellow
c:\msys64\usr\bin\bash.exe -c "../../configure --prefix=$GHDL_PREFIX_DIR --with-llvm-config='llvm-config --link-static' LDFLAGS='-static' --enable-libghdl --enable-synth CXX=clang++" 2>&1 | Restore-NativeCommandStream | %{ "$_" }
}
-Write-Host "Building GHDL and libraries..." -Foreground Yellow
+Write-Host "Building GHDL and libraries..." -ForegroundColor Yellow
c:\msys64\usr\bin\make.exe 2>&1 | Restore-NativeCommandStream | %{ "$_" }
$Err = $LastExitCode
if ($Err -eq 0)
{
- Write-Host "Installing GHDL and libraries..." -Foreground Yellow
+ Write-Host "Installing GHDL and libraries..." -ForegroundColor Yellow
c:\msys64\usr\bin\make.exe install 2>&1 | Restore-NativeCommandStream | %{ "$_" }
$Err = $LastExitCode
}
@@ -99,7 +99,7 @@ if ($Err -eq 0)
if ($Err -eq 0)
{
- Write-Host "Building binary archives..." -Foreground Yellow
+ Write-Host "Building binary archives..." -ForegroundColor Yellow
cd c:\Tools
7z a "$($env:APPVEYOR_BUILD_FOLDER)\$ZipFile" -r "GHDL\$PREFIX_DIRNAME\"
diff --git a/scripts/windows/appveyor/info.ps1 b/scripts/windows/appveyor/info.ps1
index 675bbe77e..b908885ea 100644
--- a/scripts/windows/appveyor/info.ps1
+++ b/scripts/windows/appveyor/info.ps1
@@ -47,22 +47,22 @@ function Restore-NativeCommandStream
}
-Write-Host ("ExecutionPolicy = {0}" -f (Get-ExecutionPolicy)) -Foreground Yellow
-Write-Host "List env:..." -Foreground Yellow
+Write-Host ("ExecutionPolicy = {0}" -f (Get-ExecutionPolicy)) -ForegroundColor Yellow
+Write-Host "List env:..." -ForegroundColor Yellow
dir env: | foreach { Write-Host (" {0}={1}" -f $_.Name,$_.Value) }
-Write-Host "Print env:PATH..." -Foreground Yellow
+Write-Host "Print env:PATH..." -ForegroundColor Yellow
$env:PATH.Split(";") | foreach { Write-Host " $_" }
-Write-Host "Print GCC setup..." -Foreground Yellow
+Write-Host "Print GCC setup..." -ForegroundColor Yellow
gcc.exe -v 2>&1 | Restore-NativeCommandStream | %{ "$_" }
-Write-Host "Print GCC search directories..." -Foreground Yellow
+Write-Host "Print GCC search directories..." -ForegroundColor Yellow
gcc.exe -print-search-dirs 2>&1 | Restore-NativeCommandStream | %{ "$_" }
if ($env:BUILD_BACKEND -eq "llvm")
-{ Write-Host "Print CLang setup..." -Foreground Yellow
+{ Write-Host "Print CLang setup..." -ForegroundColor Yellow
clang.exe -v 2>&1 | Restore-NativeCommandStream | %{ "$_" }
- Write-Host "Print CLang search directories..." -Foreground Yellow
+ Write-Host "Print CLang search directories..." -ForegroundColor Yellow
clang.exe -print-search-dirs 2>&1 | Restore-NativeCommandStream | %{ "$_" }
}
-Write-Host "Print gnatls setup..." -Foreground Yellow
+Write-Host "Print gnatls setup..." -ForegroundColor Yellow
gnatls.exe -v 2>&1 | Restore-NativeCommandStream | %{ "$_" }
diff --git a/scripts/windows/appveyor/install.ps1 b/scripts/windows/appveyor/install.ps1
index bf780fa19..d377bfe21 100644
--- a/scripts/windows/appveyor/install.ps1
+++ b/scripts/windows/appveyor/install.ps1
@@ -1,13 +1,13 @@
-Write-Host "Installing dependencies ..." -Foreground Yellow
-Write-Host "----------------------------------------" -Foreground Yellow
-Write-Host "Installing MinGW64 packages ..." -Foreground Yellow
+Write-Host "Installing dependencies ..." -ForegroundColor Yellow
+Write-Host "----------------------------------------" -ForegroundColor Yellow
+Write-Host "Installing MinGW64 packages ..." -ForegroundColor Yellow
C:\msys64\usr\bin\pacman -V
# list installed packages and versions
# C:\msys64\usr\bin\pacman -Q
if ($env:BUILD_MINGW -eq "mingw32")
-{ Write-Host "Installing MinGW32 packages ..." -Foreground Yellow
+{ Write-Host "Installing MinGW32 packages ..." -ForegroundColor Yellow
if ($env:BUILD_BACKEND -eq "mcode")
{
}
@@ -16,7 +16,7 @@ if ($env:BUILD_MINGW -eq "mingw32")
}
}
elseif ($env:BUILD_MINGW -eq "mingw64")
-{ Write-Host "Installing MinGW64 packages ..." -Foreground Yellow
+{ Write-Host "Installing MinGW64 packages ..." -ForegroundColor Yellow
if ($env:BUILD_BACKEND -eq "mcode")
{
}
@@ -25,15 +25,15 @@ elseif ($env:BUILD_MINGW -eq "mingw64")
}
}
-Write-Host "Installing NuGet as PackageProvider ..." -Foreground Yellow
+Write-Host "Installing NuGet as PackageProvider ..." -ForegroundColor Yellow
Install-PackageProvider NuGet -Force
Import-PackageProvider NuGet -Force
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
-Write-Host "Installing PowerShell modules ..." -Foreground Yellow
+Write-Host "Installing PowerShell modules ..." -ForegroundColor Yellow
Install-Module Pscx -AllowClobber
-#Write-Host "Check all Write-* CmdLets ..." -Foreground Yellow
+#Write-Host "Check all Write-* CmdLets ..." -ForegroundColor Yellow
#Get-Command -Verb Write | Format-Table
exit $LastExitCode
diff --git a/scripts/windows/appveyor/test.ps1 b/scripts/windows/appveyor/test.ps1
index 65045f889..59faab113 100644
--- a/scripts/windows/appveyor/test.ps1
+++ b/scripts/windows/appveyor/test.ps1
@@ -46,7 +46,7 @@ function Restore-NativeCommandStream
}
}
-Write-Host "Run testsuites..." -Foreground Yellow
+Write-Host "Run testsuites..." -ForegroundColor Yellow
cd "$($env:APPVEYOR_BUILD_FOLDER)\testsuite"
# Use a MinGW compatible path
$env:GHDL="$($env:GHDL_PREFIX_DIR)/bin/ghdl.exe"
@@ -56,7 +56,7 @@ $Err = 0
# =============================================================================
$TestFramework = "GNA"
-Write-Host "Running GNA tests..." -Foreground Yellow
+Write-Host "Running GNA tests..." -ForegroundColor Yellow
cd gna
$Directories = dir -Directory *
@@ -64,7 +64,7 @@ foreach ($Directory in $Directories)
{ $TestName = "GNA test: {0}" -f $Directory.Name
$FileName = $Directory.Name
- Write-Host $TestName -Foreground Yellow
+ Write-Host $TestName -ForegroundColor Yellow
cd $Directory
Add-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Running
$start = Get-Date
@@ -72,11 +72,11 @@ foreach ($Directory in $Directories)
$end = Get-Date
$TotalMilliseconds = ($end - $start).TotalMilliseconds
if ($LastExitCode -eq 0)
- { Write-Host "PASSED" -Foreground Green
+ { Write-Host "PASSED" -ForegroundColor Green
Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Passed -Duration $TotalMilliseconds
}
else
- { Write-Host "FAILED" -Foreground Red
+ { Write-Host "FAILED" -ForegroundColor Red
Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Failed -Duration $TotalMilliseconds
$Err = 1
}
@@ -85,14 +85,14 @@ cd ..\..
# =============================================================================
$TestFramework = "VESTS"
-Write-Host "Running VESTS tests..." -Foreground Yellow
+Write-Host "Running VESTS tests..." -ForegroundColor Yellow
cd vests
$TestName = "VESTS test:" # {0}" -f $Directory
$FileName = "VESTS" #$Directory
-Write-Host $TestName -Foreground Yellow
+Write-Host $TestName -ForegroundColor Yellow
# Disable vests. It works but takes ~20 min
if ($true)
{ Add-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Skipped
@@ -105,11 +105,11 @@ else
$end = Get-Date
$TotalMilliseconds = ($end - $start).TotalMilliseconds
if ($LastExitCode -eq 0)
- { Write-Host "PASSED" -Foreground Green
+ { Write-Host "PASSED" -ForegroundColor Green
Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Passed -Duration $TotalMilliseconds
}
else
- { Write-Host "FAILED" -Foreground Red
+ { Write-Host "FAILED" -ForegroundColor Red
Update-AppveyorTest -Name $TestName -Framework $TestFramework -FileName $FileName -Outcome Failed -Duration $TotalMilliseconds
$Err = 1
}