Commit 2ed0da78 authored by Elisabetta Giani's avatar Elisabetta Giani
Browse files

CT-147: try to run pylint without starting the devices.

parent d1cdcb0b
Loading
Loading
Loading
Loading
Loading
+13 −3
Original line number Diff line number Diff line
@@ -82,16 +82,26 @@ test:csp-lmc-common:
# linting stage

linting:csp-lmc-common:
  extends: .test_common
  image: nexus.engageska-portugal.pt/ska-docker/ska-python-buildenv:latest
  stage: linting_common
  tags:
    - docker-executor
  artifacts:
    paths:
      - ./$COMMON_BUILD_PATH/build/
  dependencies: []
  script:
    - apt-get -y update
    - apt-get install -y python3-pip python3-setuptools python3-wheel --no-install-recommends
    - python3 -m  pip install pylint2junit
    - cd $COMMON_BUILD_PATH  
    - make lint
    - pwd
    - python3 -m pip install --extra-index-url https://nexus.engageska-portugal.pt/repository/pypi/simple -r requirements.txt
    - mkdir -p build/reports
    - pylint --output-format=parseable csp_lmc_common | tee /build/csp_lmc_common-code-analysis.stdout
    - pylint --output-format=pylint2junit.JunitReporter csp_lmc_common > /build/reports/csp-lmc-common-linting.xml
    - ls -alR
  variables:
    COMMON_BUILD_PATH: csp-lmc-common

#
# Publish csp-lmc-common python package
+3 −0
Original line number Diff line number Diff line
numpy == 1.17.2
pytango >= 9.3.2
lmcbaseclasses >= 0.6.4