lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhern...@apache.org
Subject [3/5] git commit: handling ci
Date Sat, 19 Jul 2014 20:42:06 GMT
handling ci


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/31e67be4
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/31e67be4
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/31e67be4

Branch: refs/heads/pcl
Commit: 31e67be4f5b23a669f4f9ac2d00da5071c763d3d
Parents: d484fef
Author: Michael Herndon <mherndon@michaelherndon.com>
Authored: Sat Jul 19 04:06:10 2014 -0400
Committer: Michael Herndon <mherndon@michaelherndon.com>
Committed: Sat Jul 19 04:06:10 2014 -0400

----------------------------------------------------------------------
 build.fsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/31e67be4/build.fsx
----------------------------------------------------------------------
diff --git a/build.fsx b/build.fsx
index 0472d35..914e92a 100644
--- a/build.fsx
+++ b/build.fsx
@@ -8,6 +8,12 @@ let exe =
     if isMono then "/bin/bash"
         else "cmd"
 
+let ci =
+    System.Environment.GetEnvironmentVariable("CI")
+
+let isCi =
+    if ci <> null then true
+    else false
 
 Target "Clean" (fun _ -> 
     trace "Clean"
@@ -85,7 +91,8 @@ Target "Test:Core" (fun _ ->
 
     let command = 
         if isMono then "-c 'cd ./test/Lucene.Net.Core.Tests/ && k test'"
-        else "/c cd ./test/Lucene.Net.Core.Tests/ & k test "
+        elif isCi then "/c cd ./test/Lucene.Net.Core.Tests/ & ./../../k.cmd test"
+        else "/c cd ./test/Lucene.Net.Core.Tests/ & k test"
 
     let out =  (ExecProcessAndReturnMessages(fun info ->
                 info.FileName <- exe


Mime
View raw message