blob: 326dffe0bd6e8f3caad3b71329b8f7275d37fa88 [file] [log] [blame]
# Copyright 2019 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This script provisions a machine for Windows/Android testing in Flutter
# devicelab.
#
# Instructions:
# 1. Install Chocolatey (see https://chocolatey.org/install).
# 2. Install Boxstarter with command `choco install -y boxstarter`.
# 3. Open a powershell with administrator privileges.
# 4. In the shell, run `powershell <path to this script>`.
# Allows this script to execute over SSH.
Set-ExecutionPolicy Unrestricted
# Shows hidden files and file extensions
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions
# Prevents UAC from interrupting a Cocoon agent
Disable-UAC
# Gets Windows update
Install-WindowsUpdate -acceptEula
# Installs Git and the Powershell integration
choco install -y git.install
choco install -y poshgit
# Installs the dependencies of a Cocoon agent
choco install -y dart-sdk
choco install -y android-sdk
choco install -y sysinternals
# Installs a VNC server and a SSH server for remote management
choco install -y tigervnc
choco install -y openssh -params '"/SSHServerFeature /KeyBasedAuthenticationFeature"'
# Installs convenient tools
choco install -y vscode
choco install -y vim
choco install -y GoogleChrome
# Clones the Cocoon repository
cd C:\Users\flutter\
git clone https://github.com/flutter/cocoon.git