[gbrainy] Add Jenkins CI for the project



commit b07f35ddab4db37690ab761eff6f1ee437f85e0f
Author: Jordi Mas <jmas softcatala org>
Date:   Wed Jan 9 23:04:49 2019 +0100

    Add Jenkins CI for the project

 .gitlab-ci.yml                       | 14 ++++++++++++++
 tests/TestSupport/UnitTestSupport.cs |  4 +++-
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..c812536
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,14 @@
+image: mono:latest
+
+build:
+  stage: build
+  before_script: 
+    - apt-get update && apt-get install libtool-bin autotools-dev automake intltool libcanberra-gtk3-0 
libgtk3.0-cil-dev librsvg2-dev gnome-doc-utils yelp-tools make nunit nunit-console -y
+  script: 
+    - ./autogen.sh && ./configure --enable-tests
+    - make
+    - cd tests 
+    - make run 
+    - cd ..
+    - make distcheck
+
diff --git a/tests/TestSupport/UnitTestSupport.cs b/tests/TestSupport/UnitTestSupport.cs
index a748739..a0f7d24 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;
@@ -36,7 +37,8 @@ namespace gbrainy.Test
                                mono_path = ".";
 
                        // Configuration
-                       ServiceLocator.Instance.GetService <IConfiguration> ().Set 
(ConfigurationKeys.AssembliesDir, mono_path);
+            mono_path = Path.GetFullPath(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]