Skip to content

Commit

Permalink
Merge pull request #1119 from rollbar/matt/sc-127975/remove-node-8-su…
Browse files Browse the repository at this point in the history
…pport

Remove node 8 support
  • Loading branch information
mudetroit authored Sep 29, 2023
2 parents ca67811 + 1c47911 commit 29e1c72
Show file tree
Hide file tree
Showing 8 changed files with 2,028 additions and 9,103 deletions.
2 changes: 1 addition & 1 deletion sdks/rollbar.js/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [8, 10, 12, 14, 16]
node-version: [10, 12, 14, 16]

steps:
- uses: actions/checkout@v2
Expand Down
36 changes: 3 additions & 33 deletions sdks/rollbar.js/Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/**
* Build and test rollbar.js
*
* Test with browserstack:
* $> BROWSER_STACK_USERNAME=username BROWSER_STACK_ACCESS_KEY=12345asdf grunt test --browsers=bs_ie_latest
*
*/


Expand All @@ -15,7 +11,6 @@ var pkg = require('./package.json');
var fs = require('fs');

var webpackConfig = require('./webpack.config.js');
var browserStackBrowsers = require('./browserstack.browsers');


function findTests(context) {
Expand All @@ -33,7 +28,7 @@ function findTests(context) {
return mapping;
}

function buildGruntKarmaConfig(singleRun, browsers, tests, reporters) {
function buildGruntKarmaConfig(singleRun, tests, reporters) {
var config = {
options: {
configFile: './karma.conf.js',
Expand Down Expand Up @@ -71,10 +66,6 @@ function buildGruntKarmaConfig(singleRun, browsers, tests, reporters) {
},
};

if (browsers && browsers.length) {
config.options.browsers = browsers;
}

if (reporters && reporters.length) {
config.options.reporters = reporters;
}
Expand Down Expand Up @@ -112,27 +103,6 @@ module.exports = function(grunt) {
require('time-grunt')(grunt);

var browserTests = findTests('browser');
var browsers = grunt.option('browsers');
if (browsers) {
browsers = browsers.split(',');

var browserStackAliases = [];
var nonBrowserStackAliases = [];
browsers.forEach(function(browserName) {
if (browserName.slice(0, 3) === 'bs_') {
browserStackAliases.push(browserName);
} else {
nonBrowserStackAliases.push(browserName);
}
});

var expandedBrowsers = browserStackBrowsers.filter.apply(null, browserStackAliases);
var expandedBrowserNames = [];
expandedBrowsers.forEach(function(browser) {
expandedBrowserNames.push(browser._alias);
});
browsers = nonBrowserStackAliases.concat(expandedBrowserNames);
}

var singleRun = grunt.option('singleRun');
if (singleRun === undefined) {
Expand Down Expand Up @@ -165,7 +135,7 @@ module.exports = function(grunt) {
}
},

karma: buildGruntKarmaConfig(singleRun, browsers, browserTests, reporters),
karma: buildGruntKarmaConfig(singleRun, browserTests, reporters),

replace: {
snippets: {
Expand All @@ -188,7 +158,7 @@ module.exports = function(grunt) {
return captures.join('\n');
}
},
// README travis link
// README CI link
{
from: new RegExp('(https://github\\.com/rollbar/rollbar\\.js/workflows/Rollbar\\.js%20CI/badge\\.svg\\?branch=v)([0-9a-zA-Z.-]+)'),
to: function(match, index, fullText, captures) {
Expand Down
153 changes: 0 additions & 153 deletions sdks/rollbar.js/browserstack.browsers.js

This file was deleted.

Loading

0 comments on commit 29e1c72

Please sign in to comment.