shithub: dav1d

Download patch

ref: 1a8cbc0323fe2be4f3c7fa3f0aa86155f880db5e
parent: 9eaebda6fe4ecdb85052abbc624c543e7b5fddc2
author: Janne Grunau <[email protected]>
date: Wed Oct 31 16:02:03 EDT 2018

CI: cache dav1d-test-data

--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -110,8 +110,15 @@
     tags:
         - debian
         - amd64
+    cache:
+        key: testdata.git
+        paths:
+            - cache/dav1d-test-data.git/
     script:
-        - git clone --depth 1 https://code.videolan.org/videolan/dav1d-test-data.git tests/dav1d-test-data
+        - test -d cache || mkdir cache
+        - test -d cache/dav1d-test-data.git && GIT_DIR=cache/dav1d-test-data.git git fetch
+        - test -d cache/dav1d-test-data.git || git clone --bare https://code.videolan.org/videolan/dav1d-test-data.git cache/dav1d-test-data.git
+        - git clone cache/dav1d-test-data.git tests/dav1d-test-data
         - meson build --buildtype release -Dtestdata_tests=true
         - ninja -C build
         - cd build && time meson test -v