-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from nsthorat/master
Set up browserstack.
- Loading branch information
Showing
12 changed files
with
34 additions
and
9,993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ website/node_modules | |
|
||
website/i18n/* | ||
!website/i18n/en.json | ||
|
||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ node_js: | |
git: | ||
depth: 5 | ||
script: | ||
- yarn build | ||
- yarn build | ||
- yarn test-travis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,46 @@ | ||
// Karma configuration | ||
// Generated on Thu Mar 29 2018 11:50:44 GMT-0400 (EDT) | ||
|
||
module.exports = (config) => { | ||
config.set({ | ||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['jasmine'], | ||
// list of files / patterns to load in the browser | ||
files: [ | ||
'src/*/*.test.js', | ||
'src/images/*.jpg', | ||
'src/**/*_test.js', | ||
], | ||
// list of files / patterns to exclude | ||
exclude: [], | ||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
// add webpack as preprocessor | ||
'src/*/*.test.js': ['webpack'], | ||
'src/**/*_test.js': ['webpack'], | ||
}, | ||
webpack: { | ||
// karma watches the test entry points | ||
// (you don't need to specify the entry option) | ||
// webpack watches dependencies | ||
|
||
// webpack configuration | ||
|
||
}, | ||
webpackMiddleware: { | ||
// webpack-dev-middleware configuration | ||
// i. e. | ||
noInfo: true, | ||
stats: 'errors-only', | ||
}, | ||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
browserStack: { | ||
username: process.env.BROWSERSTACK_USERNAME, | ||
accessKey: process.env.BROWSERSTACK_ACCESS_KEY | ||
}, | ||
captureTimeout: 120000, | ||
reportSlowerThan: 500, | ||
browserNoActivityTimeout: 180000, | ||
customLaunchers: { | ||
bs_chrome_mac: { | ||
base: 'BrowserStack', | ||
browser: 'chrome', | ||
browser_version: 'latest', | ||
os: 'OS X', | ||
os_version: 'High Sierra' | ||
}, | ||
}, | ||
reporters: ['progress'], | ||
// web server port | ||
port: 9876, | ||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
logLevel: config.LOG_INFO, | ||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: true, | ||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
// browsers: ['Chrome', 'Firefox', 'Safari'], | ||
browsers: ['Chrome'], | ||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: false, | ||
// Concurrency level | ||
// how many browser should be started simultaneous | ||
concurrency: Infinity, | ||
concurrency: Infinity | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [[ $(node -v) = *v10* ]]; then | ||
karma start \ | ||
--browsers='bs_chrome_mac' \ | ||
--singleRun --reporters='dots,progress,BrowserStack' | ||
fi |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.