• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

murrayju / EventHandler.js / 42
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dev
DEFAULT BRANCH: master
Ran 30 Sep 2015 09:49PM UTC
Jobs 1
Files 1
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
42

push

travis-ci

U-ISI\justin.murray
Fix for proper semver prerelease naming.
diff --git a/Gruntfile.js b/Gruntfile.js
old mode 100644
new mode 100755
index ffbc053..d666d0e
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -289,7 +289,13 @@ module.exports = function (grunt) {
         var version = grunt.file.readJSON('version.json');
         // Allow the build to be set from the command line: grunt --buildNum=123
         version.build = grunt.option('buildNum') || 0;
-        version.info = '<%= version.major %>.<%= version.minor %>.<%= version.patch %>+<%= version.build %>.<%= gitInfo.branch %>.<%= gitInfo.revId %>';
+
+        var gitInfo = grunt.config.get('gitInfo');
+        if (gitInfo.branch === 'master') {
+            version.info = '<%= version.major %>.<%= version.minor %>.<%= version.patch %>+master.<%= version.build %>.<%= gitInfo.revId %>';
+        } else {
+            version.info = '<%= version.major %>.<%= version.minor %>.<%= version.patch %>-<%= gitInfo.branch %>+<%= version.build %>.<%= gitInfo.revId %>';
+        }
         grunt.config.set('version', version);
         var infoVers = grunt.template.process(version.info);
         grunt.log.writeln('Current build version: ' + infoVers);

19 of 20 relevant lines covered (95.0%)

6.8 hits per line

Jobs
ID Job ID Ran Files Coverage
1 42.1 30 Sep 2015 09:49PM UTC 0
95.0
Travis Job 42.1
Source Files on build 42
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #42
  • 22122f34 on github
  • Prev Build on dev (#40)
  • Next Build on dev (#46)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc