提交 2400c856 编写于 作者: P Piotr Bryk

Merge pull request #204 from bryk/timeout-update

Increase Karma no activiti timeout
...@@ -89,5 +89,6 @@ gulp.task('assets', function() { ...@@ -89,5 +89,6 @@ gulp.task('assets', function() {
/** /**
* Cleans all build artifacts. * Cleans all build artifacts.
*/ */
gulp.task( gulp.task('clean', function() {
'clean', function() { return del([conf.paths.dist, conf.paths.goWorkspace, conf.paths.tmp]); }); return del([conf.paths.dist, conf.paths.goWorkspace, conf.paths.tmp, conf.paths.coverage]);
});
...@@ -85,6 +85,7 @@ export default { ...@@ -85,6 +85,7 @@ export default {
backendTmpSrc: path.join(basePath, '.tmp/backend/src/github.com/kubernetes/dashboard'), backendTmpSrc: path.join(basePath, '.tmp/backend/src/github.com/kubernetes/dashboard'),
bowerComponents: path.join(basePath, 'bower_components'), bowerComponents: path.join(basePath, 'bower_components'),
build: path.join(basePath, 'build'), build: path.join(basePath, 'build'),
coverage: path.join(basePath, 'coverage'),
coverageReport: path.join(basePath, 'coverage/lcov'), coverageReport: path.join(basePath, 'coverage/lcov'),
deploySrc: path.join(basePath, 'src/app/deploy'), deploySrc: path.join(basePath, 'src/app/deploy'),
dist: path.join(basePath, 'dist'), dist: path.join(basePath, 'dist'),
......
...@@ -59,6 +59,8 @@ module.exports = function(config) { ...@@ -59,6 +59,8 @@ module.exports = function(config) {
browsers: ['Chrome'], browsers: ['Chrome'],
browserNoActivityTimeout: 60 * 1000, // 60 seconds.
customLaunchers: { customLaunchers: {
// Custom launcher for Travis CI. It is required because Travis environment cannot use // Custom launcher for Travis CI. It is required because Travis environment cannot use
// sandbox. // sandbox.
...@@ -71,7 +73,7 @@ module.exports = function(config) { ...@@ -71,7 +73,7 @@ module.exports = function(config) {
reporters: ['progress', 'coverage'], reporters: ['progress', 'coverage'],
coverageReporter: { coverageReporter: {
dir: 'coverage/', dir: conf.paths.coverage,
reporters: [ reporters: [
{type: 'html', subdir: 'html'}, {type: 'html', subdir: 'html'},
{type: 'lcovonly', subdir: 'lcov'}, {type: 'lcovonly', subdir: 'lcov'},
...@@ -100,7 +102,7 @@ module.exports = function(config) { ...@@ -100,7 +102,7 @@ module.exports = function(config) {
// code coverage. TODO(floreks): try to make import work instead of require // code coverage. TODO(floreks): try to make import work instead of require
['browserify-istanbul', {'instrumenter': require('isparta')}], ['browserify-istanbul', {'instrumenter': require('isparta')}],
// Transform ES6 code into ES5 so that browsers can digest it. // Transform ES6 code into ES5 so that browsers can digest it.
['babelify', {'presets': ['es2015']}], ['babelify'],
], ],
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册