forked from msgpack/msgpack-javascript
-
Notifications
You must be signed in to change notification settings - Fork 2
/
sauceLabs.ts
82 lines (73 loc) · 1.8 KB
/
sauceLabs.ts
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// https://saucelabs.com/platforms
const IS_LOCAL = !process.env.TRAVIS_BUILD_NUMBER;
export type SauceLauncher = {
base: "SauceLabs";
browserName: string;
// for PC
version?: string;
platform?: string;
// for mobile
deviceName?: string;
appiumVersion?: string;
platformName?: string;
platformVersion?: string;
};
export const sauceLabs = {
testName: "@msgpack/msgpack unit tests",
tags: ["msgpack-javascript"],
recordVideo: IS_LOCAL,
recordScreenshots: IS_LOCAL,
browserDisconnectTolerance: 5,
// Only master branch are logged to the SauceLabs builds, which updates the browser-matrix badge.
build:
process.env.TRAVIS_BRANCH === "master" && process.env.TRAVIS_EVENT_TYPE !== "pull_request"
? process.env.TRAVIS_BUILD_NUMBER
: undefined,
};
export const sauceLaunchers: Record<string, SauceLauncher> = {
slChrome: {
base: "SauceLabs",
browserName: "chrome",
version: "latest",
platform: "Windows 10",
},
slFirefox: {
base: "SauceLabs",
browserName: "Firefox",
version: "latest",
platform: "Windows 10",
},
slSafari: {
base: "SauceLabs",
browserName: "Safari",
version: "latest",
// "macOS 10.14" is unstable for now
platform: "macOS 10.13",
},
slEdge: {
base: "SauceLabs",
browserName: "MicrosoftEdge",
version: "latest",
platform: "Windows 10",
},
slIE: {
base: "SauceLabs",
browserName: "Internet Explorer",
version: "latest",
platform: "Windows 10",
},
slIos: {
base: "SauceLabs",
browserName: "Safari",
platformName: "iOS",
platformVersion: "latest",
deviceName: "iPhone X Simulator",
},
slAndroid: {
base: "SauceLabs",
browserName: "Chrome",
platformName: "Android",
platformVersion: "latest",
deviceName: "Android Emulator",
},
};