Skip to content

Commit

Permalink
Attempt to fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien committed Apr 29, 2016
1 parent e67d267 commit e94a731
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '0.12'
- '6.0'
dist: trusty
addons:
apt:
Expand All @@ -12,7 +12,7 @@ before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./kickstart.sh
script: gulp travis:angularjs && gulp travis:react
script: gulp travis:angularjs && gulp travis:react && gulp coveralls
notifications:
webhooks:
urls:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# n3-line-chart v2 [![Build Status](https://travis-ci.org/n3-charts/line-chart.svg?branch=dev)](https://travis-ci.org/n3-charts/line-chart) [![Coverage Status](https://coveralls.io/repos/n3-charts/line-chart/badge.svg?branch=dev&pouet=tut)](https://coveralls.io/r/n3-charts/line-chart?branch=dev) [![Join the chat at https://gitter.im/n3-charts/line-chart](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/n3-charts/line-chart)
# n3-line-chart v2 [![Build Status](https://travis-ci.org/n3-charts/line-chart.svg?branch=master)](https://travis-ci.org/n3-charts/line-chart) [![Coverage Status](https://coveralls.io/repos/n3-charts/line-chart/badge.svg?branch=dev&pouet=tut)](https://coveralls.io/r/n3-charts/line-chart?branch=dev) [![Join the chat at https://gitter.im/n3-charts/line-chart](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/n3-charts/line-chart)

**n3-line-chart** is an easy-to-use JavaScript library for creating beautiful charts in [AngularJS][angular-home] applications and it is built on top of [D3.js][d3-home].

Expand Down
4 changes: 2 additions & 2 deletions config/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function(config) {
],
reporters: ['dots', 'coverage'],
preprocessors: {
'build/LineChart.js': ['coverage']
'.tmp/build/LineChart.js': ['coverage']
},
port: 9876,
colors: true,
Expand All @@ -28,7 +28,7 @@ module.exports = function(config) {
}
};

if(process.env.TRAVIS){
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
}

Expand Down
4 changes: 2 additions & 2 deletions gulp-tasks/common/coveralls.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = function(gulp, $, paths) {
// Submit code coverage to Coveralls
gulp.task('coveralls', ['clean:coverage'], function() {
gulp.src(paths.coverage.to + '**/lcov.info')
gulp.task('coveralls', function() {
gulp.src(paths.coverage.to + '.tmp/**/lcov.info')
.pipe($.coveralls());
});
};
2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ gulp.task('travis:angularjs', function(callback) {
['src:compile:angularjs', 'scss:copy'],
['unit:test'],
['e2e:test:angularjs'],
'coveralls',
callback);
});

Expand All @@ -103,7 +102,6 @@ gulp.task('travis:react', function(callback) {
['src:compile:angularjs', 'scss:copy'],
['unit:test'],
['e2e:test:angularjs'],
'coveralls',
callback);
});

Expand Down

0 comments on commit e94a731

Please sign in to comment.