[gbrainy/jenkins] Show path



commit b8428e90be283d9879571390a363fd3793b3ce55
Author: Jordi Mas <jmas softcatala org>
Date:   Wed Jan 9 22:54:22 2019 +0100

    Show path

 .gitlab-ci.yml                       | 2 +-
 tests/TestSupport/UnitTestSupport.cs | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 946632d..c812536 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: mono:4.8
+image: mono:latest
 
 build:
   stage: build
diff --git a/tests/TestSupport/UnitTestSupport.cs b/tests/TestSupport/UnitTestSupport.cs
index a748739..64e981c 100644
--- a/tests/TestSupport/UnitTestSupport.cs
+++ b/tests/TestSupport/UnitTestSupport.cs
@@ -17,6 +17,7 @@
 
 using System;
 using NUnit.Framework;
+using System.IO;
 
 using gbrainy.Core.Main;
 using gbrainy.Core.Services;
@@ -31,11 +32,16 @@ namespace gbrainy.Test
                        new DefaultServices ().RegisterServices ();
 
                        string mono_path = Environment.GetEnvironmentVariable ("MONO_PATH");
+            Console.WriteLine("**** RegisterDefaultServices. Dir 1" + mono_path);
 
                        if (String.IsNullOrEmpty (mono_path))
                                mono_path = ".";
 
                        // Configuration
+            Console.WriteLine("**** RegisterDefaultServices. Dir 2" + mono_path);
+            mono_path = Path.GetFullPath(mono_path);
+
+            Console.WriteLine("**** RegisterDefaultServices. Dir 3" + mono_path);
                        ServiceLocator.Instance.GetService <IConfiguration> ().Set 
(ConfigurationKeys.AssembliesDir, mono_path);
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]