Merge "Include build output in `npm run test` logs"

This commit is contained in:
Jenkins 2016-03-16 00:40:19 +00:00 committed by Gerrit Code Review
commit e355c3bd4e
5 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
node_modules
build
cover
./reports
app/js/templates.js
*.py[cod]

3
etc/reports/config.json Normal file
View File

@ -0,0 +1,3 @@
{
"apiRoot": "http://health.openstack.org"
}

View File

@ -70,6 +70,11 @@ module.exports = {
'devResources': {
'src': ['etc/config.json'],
'dest': 'build/'
},
'reports': {
'src': ['build/**/*', 'etc/reports/config.json'],
'dest': 'reports/build/'
}
};

View File

@ -10,6 +10,7 @@ gulp.task('e2e', function(callback) {
runSequence(
'prod',
'dev-resources',
'reports',
'protractor',
callback);

11
gulp/tasks/reports.js Normal file
View File

@ -0,0 +1,11 @@
'use strict';
var config = require('../config');
var gulp = require('gulp');
gulp.task('reports', function() {
return gulp.src(config.reports.src)
.pipe(gulp.dest(config.reports.dest));
});