.gitlab-ci.yml
changeset 381 783188a98bcb
parent 379 07fe5bb08599
child 383 7f5d40182b58
equal deleted inserted replaced
380:c062ab4db6cd 381:783188a98bcb
    20 pylint:
    20 pylint:
    21     stage: test
    21     stage: test
    22     allow_failure: true
    22     allow_failure: true
    23     script:
    23     script:
    24         - pip install pylint --quiet
    24         - pip install pylint --quiet
    25         - pylint src/
    25         - pylint src/pyams_utils/
    26 
    26 
    27 quality:
    27 #quality:
    28     stage: test
    28 #    stage: test
    29     image: docker:stable
    29 #    image: docker:stable
    30     variables:
    30 #    variables:
    31         DOCKER_DRIVER: overlay2
    31 #        DOCKER_DRIVER: overlay2
    32     allow_failure: true
    32 #    allow_failure: true
    33     services:
    33 #    services:
    34         - docker:stable-dind
    34 #        - docker:stable-dind
    35     script:
    35 #    script:
    36         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    36 #        - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    37         - echo "$PWD"
    37 #        - echo "$PWD"
    38         - echo "$SP_VERSION"
    38 #        - echo "$SP_VERSION"
    39         - docker run
    39 #        - docker run
    40             --env SOURCE_CODE="$PWD"
    40 #            --env SOURCE_CODE="$PWD"
    41             --volume "$PWD":/code
    41 #            --volume "$PWD":/code
    42             --volume /var/run/docker.sock:/var/run/docker.sock
    42 #            --volume /var/run/docker.sock:/var/run/docker.sock
    43             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
    43 #            "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
    44         - ls
    44 #        - ls
    45     artifacts:
    45 #    artifacts:
    46         reports:
    46 #        reports:
    47             codequality: gl-code-quality-report.json
    47 #            codequality: gl-code-quality-report.json