Skip to content

Commit 552cef3

Browse files
committed
Remove Travis & update Browserstack config
1 parent 9654c37 commit 552cef3

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

karma.conf.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const settings = {
2727
[files.test] : ['eslint', 'webpack', 'sourcemap']
2828
},
2929
frameworks: ['mocha', 'chai'],
30-
reporters : ['mocha', 'coverage-istanbul'],
30+
reporters : ['mocha', 'coverage-istanbul', 'BrowserStack'],
3131
fileFixtures: {
3232
stripPrefix: 'tests/fixtures/'
3333
},
@@ -125,8 +125,14 @@ module.exports = function(config) {
125125
settings.browserStack = {
126126
username : process.env.BROWSERSTACK_USERNAME,
127127
accessKey: process.env.BROWSERSTACK_ACCESS_KEY,
128-
build : `${process.env.TRAVIS_BRANCH || gitInfo.branch}: ${process.env.TRAVIS_COMMIT_MESSAGE || gitInfo.commitMessage}`,
129-
name : (process.env.TRAVIS_BUILD_NUMBER ? `Travis ${process.env.TRAVIS_BUILD_NUMBER}` : 'Local') + ` @ ${new Date().toLocaleString('en-US', { weekday: 'short', month: 'short', day: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric', timeZoneName: 'short', hour12: true })}`,
128+
build : [
129+
`${gitInfo.branch}:` ,
130+
gitInfo.commitMessage,
131+
'@',
132+
new Date().toLocaleString('en-US', { month: 'numeric', day: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric', timeZoneName: 'short', hour12: true }),
133+
'-',
134+
process.env.GITHUB_RUN_ID ? 'GitHub' : 'Local'
135+
].join(' '),
130136
project : pkg.name,
131137
video : false
132138
};

0 commit comments

Comments
 (0)