Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #52 from codecov/fix/version
Browse files Browse the repository at this point in the history
Take version from package.json
  • Loading branch information
eddiemoore authored Mar 16, 2017
2 parents a6bdf01 + e7a3a72 commit 458cc21
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/codecov.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var execSync = require('child_process').execSync;

var detectProvider = require('./detect');

var version = "v1.0.1";
var version = 'v' + require('../package.json').version;

var patterns = "-type f \\( -name '*coverage.*' " +
"-or -name 'nosetests.xml' " +
Expand Down
5 changes: 5 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,10 @@ describe("Codecov", function(){
expect(res.debug).to.contain('find folder/path -type f -name \'*.gcno\' -not -path \'ignore/this/folder\' -exec llvm-gcov -o {} +');
});

it('should have the correct version number', function() {
var version = require('../package.json').version
expect(codecov.version).to.eql('v' + version)
})


});

0 comments on commit 458cc21

Please sign in to comment.