2019-12-02 12:14:39 +01:00
|
|
|
# Copyright 2019 Google LLC
|
|
|
|
|
|
|
|
# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
|
|
|
|
# https://llvm.org/LICENSE.txt
|
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2019-12-02 12:47:54 +01:00
|
|
|
Write-Host "Initializing local SSD..."
|
2019-12-16 19:01:09 +01:00
|
|
|
New-Variable -Name diskid -Value (Get-Disk -FriendlyName "Google PersistentDisk").Number
|
2019-12-02 12:14:39 +01:00
|
|
|
# TODO: check if machine has an SSD
|
|
|
|
# TODO: only do this, if SSD is not yet usable
|
2019-12-02 12:47:54 +01:00
|
|
|
Initialize-Disk -Number $diskid
|
|
|
|
New-Partition -DiskNumber $diskid -UseMaximumSize -AssignDriveLetter
|
2019-12-02 12:14:39 +01:00
|
|
|
Format-Volume -DriveLetter D
|
|
|
|
|
2019-12-16 17:45:06 +01:00
|
|
|
Write-Host "install chocolately as package manager..."
|
2019-12-16 19:01:09 +01:00
|
|
|
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
|
2019-12-16 17:45:06 +01:00
|
|
|
choco feature disable --name showDownloadProgress
|
2019-12-16 19:01:09 +01:00
|
|
|
choco install git
|
2019-12-16 17:45:06 +01:00
|
|
|
|
2019-12-13 16:08:41 +01:00
|
|
|
Write-Host "Mounting result storage..."
|
|
|
|
Install-WindowsFeature NFS-Client
|
|
|
|
net use E: \\results.local\exports
|
|
|
|
|
2019-12-16 19:01:09 +01:00
|
|
|
Set-Location D:\
|
|
|
|
git clone https://github.com/google/llvm-premerge-checks
|