]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not install Python packages in GitLab CI jobs
authorMichał Kępień <michal@isc.org>
Thu, 21 May 2020 09:33:11 +0000 (11:33 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 21 May 2020 09:43:57 +0000 (11:43 +0200)
As Python QA tools, BIND system test prerequisites, and documentation
building utilities are now all included in operating system images used
in GitLab CI, do not use pip for installing them in each CI job any
more.

(cherry picked from commit e3c217296d89b19ed3b8c189edcf3dbc7c0df3aa)

.gitlab-ci.yml

index 8fc7372ae226b05bd3b6d1d4cafd476117b1f5a8..195d0555398cc15046db499a897634d8a57cd828 100644 (file)
@@ -430,8 +430,6 @@ flake8:
   needs:
     - job: autoreconf
       artifacts: true
-  before_script:
-    - pip3 install flake8
   script:
     - *configure
     - flake8 --max-line-length=80 $(git ls-files '*.py' | grep -v 'ans\.py')
@@ -446,10 +444,9 @@ pylint:
     - job: autoreconf
       artifacts: true
   before_script:
-    - pip3 install pylint
-    - PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/bin/python"
   script:
     - *configure
+    - PYTHONPATH="$PYTHONPATH:$CI_PROJECT_DIR/bin/python"
     - pylint --rcfile $CI_PROJECT_DIR/.pylintrc $(git ls-files '*.py' | grep -v 'ans\.py' | grep -v 'contrib/queryperf/')
   only:
     - merge_requests