.gitlab-ci.yml
changeset 354 c200ae872b06
parent 353 69a51eacb3f1
child 355 ed28846be306
equal deleted inserted replaced
353:69a51eacb3f1 354:c200ae872b06
     1 image: python:3.5
     1 image: python:3.5
     2 
     2 
     3 cache:
     3 cache:
     4     key: PYRAMID_CACHE
     4     key: PYRAMID_CACHE
     5     paths:
     5     paths:
     6         - /var/local/env/pyams/eggs/
     6         - /var/local/env/pyams/eggs
     7 
     7 
     8 before_script:
     8 before_script:
     9     - export http_proxy=http://172.17.0.1:3128/
     9     - export http_proxy=http://172.17.0.1:3128/
    10     - export https_proxy=http://172.17.0.1:3128/
    10     - export https_proxy=http://172.17.0.1:3128/
    11     - apt-get update
    11     - apt-get update
    15 
    15 
    16 test:
    16 test:
    17     script:
    17     script:
    18         - ./bin/test
    18         - ./bin/test
    19 
    19 
    20 after_script:
    20 code_quality:
    21     - ls /var/local/env/pyams/eggs
    21     image: docker:stable
       
    22     variables:
       
    23         DOCKER_DRIVER: overlay2
       
    24     allow_failure: true
       
    25     services:
       
    26         - docker:stable-dind
       
    27     script:
       
    28         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
       
    29         - docker run
       
    30             --env SOURCE_CODE="$PWD/src"
       
    31             --volume "$PWD":/code
       
    32             --volume /var/run/docker.sock:/var/run/docker.sock
       
    33             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
       
    34     artifacts:
       
    35         reports:
       
    36             codequality: gl-code-quality-report.json