11// https://saucelabs.com/platforms
22
3+ const IS_LOCAL = ! ! process . env . TRAVIS_BUILD_NUMBER ;
4+
35export type SauceLauncher = {
46 base : "SauceLabs" ;
57 browserName : string ;
68
79 platform ?: string ;
810 version ?: string ;
9- deviceName ?: string ;
1011} ;
1112
1213export const sauceLabs = {
1314 testName : "@msgpack/msgpack unit tests" ,
1415 tags : [ "msgpack-javascript" ] ,
15- recordVideo : true ,
16- recordScreenshots : true ,
17- maxDuration : 120 ,
16+ recordVideo : IS_LOCAL ,
17+ recordScreenshots : IS_LOCAL ,
18+ browserDisconnectTolerance : 5 ,
19+
20+ // Only master branch are logged to the SauceLabs builds, which updates the browser-matrix badge.
21+ build :
22+ process . env . TRAVIS_BRANCH === "master" && process . env . TRAVIS_EVENT_TYPE !== "pull_request"
23+ ? process . env . TRAVIS_BUILD_NUMBER
24+ : undefined ,
1825} ;
1926
2027export const sauceLaunchers : Record < string , SauceLauncher > = {
@@ -26,19 +33,27 @@ export const sauceLaunchers: Record<string, SauceLauncher> = {
2633 } ,
2734 slFirefox : {
2835 base : "SauceLabs" ,
29- browserName : "firefox " ,
36+ browserName : "Firefox " ,
3037 version : "latest" ,
3138 platform : "Windows 10" ,
3239 } ,
3340 slSafari : {
3441 base : "SauceLabs" ,
35- browserName : "safari " ,
42+ browserName : "Safari " ,
3643 version : "latest" ,
44+ // "macOS 10.14" is unstable for now
45+ platform : "macOS 10.13" ,
3746 } ,
38- slIE : {
47+ slEdge : {
3948 base : "SauceLabs" ,
40- browserName : "internet explorer" ,
49+ browserName : "MicrosoftEdge" ,
50+ version : "latest" ,
4151 platform : "Windows 10" ,
52+ } ,
53+ slIE : {
54+ base : "SauceLabs" ,
55+ browserName : "Internet Explorer" ,
4256 version : "latest" ,
57+ platform : "Windows 10" ,
4358 } ,
4459} ;
0 commit comments