aboutsummaryrefslogtreecommitdiffstats
path: root/dist/windows/appveyor/install.ps1
diff options
context:
space:
mode:
author1138-4EB <1138-4EB@users.noreply.github.com>2017-02-14 19:13:00 +0100
committertgingold <tgingold@users.noreply.github.com>2017-02-14 19:13:00 +0100
commitde9c5ceb7923a896b888656fdd1f1cd238b830e0 (patch)
tree09b247593cab5d1258b74d3dded8d3feb1e32a21 /dist/windows/appveyor/install.ps1
parentf7e455245d9d12f69e2bb8eb67a84c1961cc20f3 (diff)
downloadghdl-de9c5ceb7923a896b888656fdd1f1cd238b830e0.tar.gz
ghdl-de9c5ceb7923a896b888656fdd1f1cd238b830e0.tar.bz2
ghdl-de9c5ceb7923a896b888656fdd1f1cd238b830e0.zip
Replace travis-ci matrix with docker containers (#272)
* Extract tag declarations from <travis-ci.sh>. Rename it to <buildtest.sh> and allow to pass -b (BLD) and -f (PKG_FILE) as arguments. Save tag declarations in <travis-ci.sh>, with a different meaning now. Modify <.travis.yml> accordingly. * chmod +x ./dist/buildtest.sh. Can be removed bi changing permissions. * Replace travis builds with docker containers. ubu1404+llvm-3.5, ubu1204+llvm-3.8, ubu+mcode, fed+mcode and fed+llvm Add PKG_DTAG and SHORT_COMMIT after PKG_FILE, to avoid collisions. DOCKER_IMG used to set image to be used in docker build. <mv> is enough if the host dir is mounted in the container. Since multiple files are added, content in <dist> split to <dist/lin> and <dist/win>. Git depth set to 10 in <.travis.yml> * Fix paths lin/linux and win/windows. Remove '_compile'. Revome wrong placed old buildtest. Add conditional builds (3). Leave 2 fixed.
Diffstat (limited to 'dist/windows/appveyor/install.ps1')
-rw-r--r--dist/windows/appveyor/install.ps139
1 files changed, 39 insertions, 0 deletions
diff --git a/dist/windows/appveyor/install.ps1 b/dist/windows/appveyor/install.ps1
new file mode 100644
index 000000000..bcff78ac8
--- /dev/null
+++ b/dist/windows/appveyor/install.ps1
@@ -0,0 +1,39 @@
+Write-Host "Installing dependencies ..." -Foreground Yellow
+Write-Host "----------------------------------------" -Foreground Yellow
+Write-Host "Installing MinGW64 packages ..." -Foreground 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
+ if ($env:BUILD_BACKEND -eq "mcode")
+ {
+ }
+ elseif ($env:BUILD_BACKEND -eq "llvm")
+ { C:\msys64\usr\bin\pacman -S mingw-w64-i686-llvm35 mingw-w64-i686-clang35 --noconfirm
+ }
+}
+elseif ($env:BUILD_MINGW -eq "mingw64")
+{ Write-Host "Installing MinGW64 packages ..." -Foreground Yellow
+ if ($env:BUILD_BACKEND -eq "mcode")
+ {
+ }
+ elseif ($env:BUILD_BACKEND -eq "llvm")
+ { C:\msys64\usr\bin\pacman -S mingw-w64-x86_64-llvm35 mingw-w64-x86_64-clang35 --noconfirm
+ }
+}
+
+Write-Host "Installing NuGet as PackageProvider ..." -Foreground Yellow
+Install-PackageProvider NuGet -Force
+Import-PackageProvider NuGet -Force
+Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
+
+Write-Host "Installing PowerShell modules ..." -Foreground Yellow
+Install-Module Pscx -AllowClobber
+
+#Write-Host "Check all Write-* CmdLets ..." -Foreground Yellow
+#Get-Command -Verb Write | Format-Table
+
+exit $LastExitCode