[tracker/sam/tests-eat-my-data] tests: Use libeatmydata to speed up tests



commit 84ccc4eb167f4b9116b6fc51ac8f5de7810c553d
Author: Sam Thursfield <sam afuera me uk>
Date:   Wed Feb 12 00:22:32 2020 +0100

    tests: Use libeatmydata to speed up tests
    
    This will hopefully fix https://gitlab.gnome.org/GNOME/tracker/issues/145

 .gitlab-ci.yml | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b2e4f463..bfe25c0ba 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,13 @@ stages:
   stage: test
 
   script:
+    - |
+      curl --get 'https://www.flamingspork.com/projects/libeatmydata/libeatmydata-105.tar.gz' --output 
libeatmydata-105.tar.gz
+      tar -x -f ./libeatmydata-105.tar.gz
+      cd libeatmydata-105
+      ./configure --prefix=/usr
+      make install
+      cd ..
     - su tracker -c 'mkdir build'
     - su tracker -c 'cd build; meson .. -Db_lto=true -Db_coverage=true'
     - su tracker -c 'cd build; ninja'
@@ -30,7 +37,7 @@ stages:
       # We limit `meson test` to 4 parallel test processes. The default is to
       # have one test process per CPU, but our tests are mostly IO bound
       # and we get timeouts and failures if we try to run 32 of them at once.
-      su tracker -c 'cd build; env LANG=C.UTF-8 LC_ALL=C.UTF-8 meson test --num-processes=4 
--print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
+      su tracker -c 'cd build; env LANG=C.UTF-8 LC_ALL=C.UTF-8 eatmydata meson test --num-processes=4 
--print-errorlogs ${MESON_TEST_EXTRA_ARGS}'
 
   after_script:
     - |


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