cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject cordova-medic git commit: Adding steps to set NPM version and node version.
Date Tue, 04 Aug 2015 07:26:50 GMT
Repository: cordova-medic
Updated Branches:
  refs/heads/master a4be82610 -> d1b2bf7f0


Adding steps to set NPM version and node version.


Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/d1b2bf7f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/d1b2bf7f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/d1b2bf7f

Branch: refs/heads/master
Commit: d1b2bf7f0ee219e137c863977b7826a852b779a9
Parents: a4be826
Author: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Authored: Tue Aug 4 00:26:42 2015 -0700
Committer: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Committed: Tue Aug 4 00:26:42 2015 -0700

----------------------------------------------------------------------
 buildbot-conf/cordova.conf | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/d1b2bf7f/buildbot-conf/cordova.conf
----------------------------------------------------------------------
diff --git a/buildbot-conf/cordova.conf b/buildbot-conf/cordova.conf
index 2c3113d..72184cd 100644
--- a/buildbot-conf/cordova.conf
+++ b/buildbot-conf/cordova.conf
@@ -185,6 +185,9 @@ def CodebaseClone(codebase, *args, **kwargs):
 def Set(name, value, **kwargs):
     return DescribedStep(SetProperty, 'setting ' + name, property=name, value=value, **kwargs)
 
+def SetFromCommand(name, command, **kwargs):
+    return DescribedStep(SetPropertyFromCommand, 'setting ' + name, property=name, command=command,
**kwargs)
+
 def Download(mastersrc, slavedest, description, **kwargs):
     # NOTE:
     #      the FileDownload step has a bug and requires
@@ -244,6 +247,9 @@ CORDOVA_STEPS_SET_SETTINGS = [
     Set('npm_cache_dir',  I('%(prop:builddir)s/' + NPM_CACHE_DIR_NAME)),
     Set('npm_temp_dir',   I('%(prop:builddir)s/' + NPM_TEMP_DIR_NAME)),
     Set('npm_prefix_dir', I('%(prop:builddir)s/')),
+
+    SetFromCommand('npm_version', ['npm', '--version']),
+    SetFromCommand('node_version', ['node', '--version']),
 ]
 
 CORDOVA_STEPS_CLEAN_UP = [
@@ -372,7 +378,7 @@ def cordova_steps_run_tests(platform, extra_args=list()):
             haltOnFailure = True,
         ),
 
-        SetPropertyFromCommand(command=['cat', P('test_summary_file')], property='test_summary',
hideStepIf=True),
+        SetFromCommand('test_summary', ['cat', P('test_summary_file')], hideStepIf=True),
         DisplayResults(warnOnWarnings=True),
     ]
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message