[gi-docgen/ci-fixes: 1/2] ci: Install reuse from pip




commit 9c53e30c13f25ba41d0e714c99444b1430e90a26
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Aug 9 19:02:06 2021 +0100

    ci: Install reuse from pip
    
    The reuse packaged for Fedora is broken.

 .gitlab-ci.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 05735f9..7065e43 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,6 +22,11 @@ stages:
 #    - dnf install -y python3-pip
 #    - python3 -m pip install --user -e .
 
+.pip:
+  before_script:
+    - export PATH="$HOME/.local/bin:$PATH"
+    - dnf install -y python3-pip
+
 flake8:
   stage: check
   needs: []
@@ -38,17 +43,19 @@ mypy:
   allow_failure: true
 
 reuse:
+  extends: .pip
   stage: check
   needs: []
   script:
-    - dnf install -y reuse
+    - pip install --user reuse
     - reuse lint
 
 pages:
+  extends: .pip
   stage: deploy
   needs: []
   script:
-    - dnf install -y make python3-sphinx python3-sphinx_rtd_theme
+    - pip install --user sphinx sphinx_rtd_theme
     - cd docs
     - make
     - mv _build ../public


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