forked from brave-experiments/browser-comparison-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
40 lines (38 loc) · 1.66 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
pipeline {
agent {
label "windows-ci"
}
stages {
stage('checkout') {
steps {
git 'https://github.com/brave-experiments/browser-comparison-toolkit.git'
powershell """
\$ErrorActionPreference = "Stop"
# Set-PSDebug -Trace 2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;
Stop-Process -Name "Brave*" -Force
Write-Host "wget https://brave-browser-downloads.s3.brave.com/latest/BraveBrowserSetup.exe"
wget "https://brave-browser-downloads.s3.brave.com/latest/BraveBrowserSetup.exe" -OutFile "BraveBrowserSetup.exe"
Start-Sleep -Second 30
Start-Process "BraveBrowserSetup.exe"
Start-Sleep -Second 60
./memory-bench.ps1 Brave five
Stop-Process -Name "Brave*" -Force
"""
benchmark altInputSchema: '''{
"type": "object",
"properties": {
"memory": {
"type": "object",
"properties": {
"test": { "type": "name" },
"average": { "type": "result" }
}
}
}
}
''', altInputSchemaLocation: '', inputLocation: '*.json', schemaSelection: 'customSchema', truncateStrings: true
}
}
}
}