Skip to content

Commit

Permalink
ci: Remove saucelabs
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian committed Oct 12, 2024
1 parent c9846f1 commit 61f02fe
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 3,891 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/saucelabs.yml

This file was deleted.

5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
[![gzip size](http://img.badgesize.io/https://unpkg.com/preact/dist/preact.min.js?compression=gzip&label=gzip)](https://unpkg.com/preact/dist/preact.min.js)
[![brotli size](http://img.badgesize.io/https://unpkg.com/preact/dist/preact.min.js?compression=brotli&label=brotli)](https://unpkg.com/preact/dist/preact.min.js)

</td>
<td>

<img src="https://saucelabs.com/browser-matrix/preact.svg" title="Browser support matrix">

</td>
</tr>
</tbody>
Expand Down
63 changes: 4 additions & 59 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
var coverage = String(process.env.COVERAGE) === 'true',
minify = String(process.env.MINIFY) === 'true',
ci = String(process.env.CI).match(/^(1|true)$/gi),
sauceLabs = ci && String(process.env.RUN_SAUCE_LABS) === 'true',
// always downlevel to ES5 for saucelabs:
downlevel = sauceLabs || String(process.env.DOWNLEVEL) === 'true',
downlevel = String(process.env.DOWNLEVEL) === 'true',
performance = !coverage && String(process.env.PERFORMANCE) !== 'false',
path = require('path'),
errorstacks = require('errorstacks'),
Expand Down Expand Up @@ -40,40 +37,6 @@ process.stdout.write = msg => {
return orgStdoutWrite.call(process.stdout, out);
};

var sauceLabsLaunchers = {
sl_chrome: {
base: 'SauceLabs',
browserName: 'chrome',
platform: 'Windows 10'
},
sl_firefox: {
base: 'SauceLabs',
browserName: 'firefox',
platform: 'Windows 10'
},
// TODO: Safari always fails and disconnects before any tests are executed.
// This seems to be an issue with Saucelabs and they're actively investigating
// that (see: https://mobile.twitter.com/bromann/status/1136323458328084482).
// We'll disable Safari for now until that's resolved.
// sl_safari: {
// base: 'SauceLabs',
// browserName: 'Safari',
// version: '11',
// platform: 'OS X 10.13'
// },
sl_edge: {
base: 'SauceLabs',
browserName: 'MicrosoftEdge',
platform: 'Windows 10'
},
sl_ie_11: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11.0',
platform: 'Windows 7'
}
};

var localLaunchers = {
ChromeNoSandboxHeadless: {
base: 'Chrome',
Expand Down Expand Up @@ -251,16 +214,11 @@ function createEsbuildPlugin() {

module.exports = function (config) {
config.set({
browsers: sauceLabs
? Object.keys(sauceLabsLaunchers)
: Object.keys(localLaunchers),
browsers: Object.keys(localLaunchers),

frameworks: ['mocha', 'chai-sinon'],

reporters: ['mocha'].concat(
coverage ? 'coverage' : [],
sauceLabs ? 'saucelabs' : []
),
reporters: ['mocha'].concat(coverage ? 'coverage' : []),

formatError(msg) {
const frames = errorstacks.parseStackTrace(msg);
Expand Down Expand Up @@ -295,22 +253,9 @@ module.exports = function (config) {

browserNoActivityTimeout: 5 * 60 * 1000,

// Use only two browsers concurrently, works better with open source Sauce Labs remote testing
concurrency: 2,

captureTimeout: 0,

sauceLabs: {
build: `CI #${process.env.GITHUB_RUN_NUMBER} (${process.env.GITHUB_RUN_ID})`,
tunnelIdentifier:
process.env.GITHUB_RUN_NUMBER ||
`local${require('./package.json').version}`,
connectLocationForSERelay: 'localhost',
connectPortForSERelay: 4445,
startConnect: !!sauceLabs
},

customLaunchers: sauceLabs ? sauceLabsLaunchers : localLaunchers,
customLaunchers: localLaunchers,

files: [
{ pattern: 'test/polyfills.js', watched: false },
Expand Down
Loading

0 comments on commit 61f02fe

Please sign in to comment.