Skip to content

Commit 6ed415d

Browse files
author
Rohan Jain
committed
Mention commit in the builds using commit hash
1 parent 7cede07 commit 6ed415d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ if (!config.project) {
3838
config.project = process.env.TRAVIS_REPO_SLUG || package_json.name;
3939
}
4040

41-
config.build = process.env.TRAVIS_COMMIT;
41+
var commit_id = process.env.TRAVIS_COMMIT;
42+
43+
if (commit_id) {
44+
config.build = "Commit-" + commit_id.slice(0, commit_id.length/2);
45+
}
4246

4347
['username', 'key', 'test_path', 'browsers'].forEach(function (param) {
4448
if (typeof config[param] === 'undefined') {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "browserstack-runner",
33
"description": "A command line interface to run browser tests over BrowserStack",
4-
"version": "0.0.8",
4+
"version": "0.0.9",
55
"homepage": "https://github.com/browserstack/browserstack-runner",
66
"repository": {
77
"type": "git",

0 commit comments

Comments
 (0)