Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: windows builder provisioning #2

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions support/cygwin_juliadev.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
mkdir -Force C:\cygwin | Out-Null
(new-object net.webclient).DownloadFile(
"http://cygwin.com/setup-x86_64.exe", "C:\cygwin\setup-x86_64.exe")
foreach ($pkg in @("git,make,curl,patch,python,gcc-g++,m4,cmake,p7zip",
"mingw64-i686-gcc-g++,mingw64-i686-gcc-fortran",
"mingw64-x86_64-gcc-g++,mingw64-x86_64-gcc-fortran")) {
C:\cygwin\setup-x86_64.exe -q -n -R C:\cygwin -l C:\cygwin\packages `
-s http://mirrors.mit.edu/cygwin -g -P $pkg | Where-Object `
-FilterScript {$_ -notlike "Installing file *"} | Write-Output
}
[Environment]::SetEnvironmentVariable("HOMEDRIVE", "C:")
[Environment]::SetEnvironmentVariable("HOMEPATH", "\Users\vagrant")
C:\cygwin\bin\sh -lc "if ! [ -e julia32 ]; then git clone \
git://github.com/JuliaLang/julia.git julia32; fi && cd julia32 && git pull && \
echo 'XC_HOST = i686-w64-mingw32' > Make.user && make cleanall && \
make -j2 test && make win-extras && make binary-dist"
C:\cygwin\bin\sh -lc "if ! [ -e julia64 ]; then git clone \
git://github.com/JuliaLang/julia.git julia64; fi && cd julia64 && git pull && \
echo 'XC_HOST = x86_64-w64-mingw32' > Make.user && make cleanall && \
make -j2 test && make win-extras && make binary-dist"
8 changes: 8 additions & 0 deletions win2012r2.vagrant
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.box = "packer-windows/windows_2012_r2_virtualbox.box"
config.vm.communicator = "winrm"
config.vm.provision "shell", path: "support/cygwin_juliadev.ps1"
end