Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Setup Steps

```batch
cd /d %USERPROFILE%
choco install git python2 python microsoft-build-tools cmake.portable -y
choco install git python2 python microsoft-build-tools cmake.portable nuget.commandline -y
```

3. Set up dependencies (must run elevated; best to start a clean shell):
Expand Down
18 changes: 18 additions & 0 deletions rolling-perf/rolling-perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ def process_arguments():
global script_args
script_args = parser.parse_args()

global tools_dir
tools_dir = os.path.join(script_args.working_directory, 'tools')

global results_dir
results_dir = os.path.join(script_args.working_directory, 'results')

Expand Down Expand Up @@ -245,6 +248,18 @@ def check_dependencies():
RunCommand(['msbuild', '-version'])
except:
raise FatalError("Can't find msbuild, please make sure it's installed and on PATH")

logging.getLogger('script').info("Making sure nuget exists...")
try:
RunCommand(['nuget'])
except:
raise FatalError("Can't find nuget, please make sure it's installed and on PATH")

def refresh_benchview_tools():
benchview_tools_path = os.path.join(tools_dir, 'Microsoft.BenchView.JSONFormat')
if os.path.exists(benchview_tools_path):
shutil.rmtree(benchview_tools_path)
RunCommand(['nuget','install', 'Microsoft.BenchView.JSONFormat', '-Source', 'http://benchviewtestfeed.azurewebsites.net/nuget', '-OutputDirectory', tools_dir, '-Prerelease', '-ExcludeVersion']);

def refresh_repos():
cli_repo.make_clean()
Expand Down Expand Up @@ -326,6 +341,9 @@ def main():
check_dependencies()

LogStartMessage('script')
logging.getLogger('script').info("Refreshing benchview tools...")
refresh_benchview_tools()

logging.getLogger('script').info("Refreshing git repos to look for new commits...")
refresh_repos()

Expand Down