.gitlab-ci.yml
changeset 360 9ab2495cb022
parent 359 14eaa9024bb4
child 361 20773d4442ee
equal deleted inserted replaced
359:14eaa9024bb4 360:9ab2495cb022
    26     before_script:
    26     before_script:
    27         - grep "version =" setup.py
    27         - grep "version =" setup.py
    28     script:
    28     script:
    29         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    29         - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
    30         - docker run
    30         - docker run
       
    31             --privileged
    31             --env SOURCE_CODE="$PWD/src"
    32             --env SOURCE_CODE="$PWD/src"
    32             --volume "$PWD":/code
    33             --volume "$PWD":/code
    33             --volume /var/run/docker.sock:/var/run/docker.sock
    34             --volume /var/run/docker.sock:/var/run/docker.sock
    34             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
    35             "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
    35     artifacts:
    36     artifacts: