vcpkg/scripts/azure-pipelines/osx
ras0219 481738beae
[vcpkg] Add vcpkg export to E2E tests. Enable E2E tests on all platforms. (#12198)
* [vcpkg] Add `vcpkg export` to E2E tests. Enable E2E tests on MacOS.

* [vcpkg] Fix export --raw --output-dir=/path/ by changing directory to new export root

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-08-10 10:22:51 -07:00
..
configuration [vcpkg-ci] fix macos setup scripts (#12639) 2020-07-31 11:52:24 -07:00
azure-pipelines.yml [vcpkg] Add vcpkg export to E2E tests. Enable E2E tests on all platforms. (#12198) 2020-08-10 10:22:51 -07:00
Install-Prerequisites.ps1 [vcpkg ci] add macos scripts to vcpkg repo (#12172) 2020-07-01 10:08:06 -07:00
README.md [vcpkg-ci] fix macos setup scripts (#12639) 2020-07-31 11:52:24 -07:00
Setup-VagrantMachines.ps1 [vcpkg-ci] fix macos setup scripts (#12639) 2020-07-31 11:52:24 -07:00
Utilities.psm1 [vcpkg-ci] fix macos setup scripts (#12639) 2020-07-31 11:52:24 -07:00

vcpkg-eg-mac VMs

Table of Contents

Basic Usage

The simplest usage, and one which should be used for when spinning up new VMs, and when restarting old ones, is a simple:

$ cd ~/vagrant/vcpkg-eg-mac
$ vagrant up

Any modifications to the machines should be made in configuration/VagrantFile and Setup-VagrantMachines.ps1, and make sure to push any changes!

Setting up a new macOS machine

Before anything else, one must download brew and powershell.

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
$ brew cask install powershell

Then, we need to download the vcpkg repository:

$ git clone https://github.com/microsoft/vcpkg

And now all we need to do is set it up! Replace XX with the number of the virtual machine. Generally, that should be the same as the number for the physical machine; i.e., vcpkgmm-04 will have vcpkg-eg-mac-04.

$ cd vcpkg/scripts/azure-pipelines/osx
$ ./Install-Prerequisites.ps1 -Force
  # NOTE: you may get an error about CoreCLR; see the following paragraph if you do
$ ./Setup-VagrantMachines.ps1 XX \
  -Pat '<get this from azure>' \
  -ArchivesUsername '<get this from the archives share>' \
  -ArchivesAccessKey '<get this from the archives share>' \
  -ArchivesUrn '<something>.file.core.windows.net' \
  -ArchivesShare 'archives'
$ cd ~/vagrant/vcpkg-eg-mac
$ vagrant up

If you see the following error:

Failed to initialize CoreCLR, HRESULT: 0x8007001F

You have to reboot the machine; run

$ sudo shutdown -r now

and wait for the machine to start back up. Then, start again from Install-Prerequisites.ps1.