forked from FineUploader/fine-uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma-sauce.conf.coffee
23 lines (21 loc) · 1.06 KB
/
karma-sauce.conf.coffee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SauceLabs Karma configuration
sharedConfig = require './karma.conf'
modules = require './lib/modules'
allBrowsers = require './lib/browsers'
testRunnerId = if process.env.TRAVIS_BRANCH? then "travis #{process.env.TRAVIS_BRANCH}" else "#{process.env.SAUCE_USERNAME}@local"
module.exports = (config, options = {}) ->
sharedConfig config,
testName: '[sauce] FineUploader: tests'
logFile: 'fineuploader-sauce.log'
singleRun: true
autoWatch: false
customLaunchers: allBrowsers.sauceBrowsers
sauceLabs:
recordVideo: false
startConnect: false
tags: [ testRunnerId ]
testName: options.testName || '[unit] FineUploader'
username: process.env.SAUCE_USERNAME || process.env.SAUCE_USER_NAME || ''
accessKey: process.env.SAUCE_ACCESS_KEY || process.env.SAUCE_ACCESSKEY || ''
build: process.env.TRAVIS_BUILD_ID || `Math.floor((new Date).getTime() / 1000 - 1230768000).toString()`
tunnelIdentifer: process.env.TRAVIS_JOB_NUMBER || `Math.floor((new Date).getTime() / 1000 - 1230768000).toString()`