[gjs: 1/2] CI: add a Valgrind job



commit c69eb636508103c6b8c9811e2c4c0f5b504234a4
Author: Claudio André <claudioandre br gmail com>
Date:   Sun Mar 25 18:43:23 2018 -0300

    CI: add a Valgrind job

 .gitlab-ci.yml  | 18 ++++++++++++++++++
 test/test-ci.sh |  9 +++++++++
 2 files changed, 27 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3673434..283d018 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,6 +55,11 @@ stages:
          $(pwd)/test/test-ci.sh GJS_COVERAGE;
        fi'
 
+    # Run valgrind
+    - 'if [[ $BUILD_OPTS == *"--enable-valgrind"* ]]; then
+         $(pwd)/test/test-ci.sh VALGRIND;
+       fi'
+
 fedora:
   <<: *build
   when: always
@@ -144,6 +149,19 @@ codequality:
   only:
     - master@GNOME/gjs
 
+valgrind:
+  <<: *build
+  stage: thorough_tests
+  image: claudioandre/spidermonkey:fedora.dev.gcc
+  variables:
+    CC: gcc
+    DEV: devel
+    TEST: "build"
+    BUILD_OPTS: "--enable-valgrind --disable-valgrind-helgrind --prefix=/usr"
+  allow_failure: true
+  only:
+    - master@GNOME/gjs
+
 cppcheck:
   <<: *build
   stage: static_analysis
diff --git a/test/test-ci.sh b/test/test-ci.sh
index 23deab0..78f79c5 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -172,6 +172,15 @@ elif [[ $1 == "GJS_EXTRA" ]]; then
         xvfb-run -a --server-args="-screen 0 1024x768x24" dbus-run-session -- gnome-desktop-testing-runner 
gjs
     fi
 
+elif [[ $1 == "VALGRIND" ]]; then
+    # Run Valgrind. It doesn't (re)build, just run the 'Valgrind Tests'
+    echo
+    echo '-- Valgrind Report --'
+    do_Set_Env
+    PATH=$PATH:~/.local/bin
+
+    make check-valgrind
+
 elif [[ $1 == "GJS_COVERAGE" ]]; then
     # Code coverage test. It doesn't (re)build, just run the 'Coverage Tests'
     echo


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