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



commit 3d3e26380d921b5627da35738d8fa80fa6aad637
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 | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b2e4f463..0a8384875 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,7 +30,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:
     - |
@@ -54,10 +54,21 @@ stages:
 
 test-fedora-latest:
   image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/fedora:latest
+  before_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 ..
   <<: *test
 
 test-ubuntu-rolling:
   image: registry.gitlab.gnome.org/gnome/tracker-oci-images/amd64/ubuntu:rolling
+  before_script:
+    - apt-get update
+    - apt-get install -y eatmydata
   <<: *test
 
 test-alpine-rolling:


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