diff -r 0b9e3e67f43d -r 4b0f521af8ad .gitlab-ci.yml --- a/.gitlab-ci.yml Fri Nov 22 18:57:44 2019 +0100 +++ b/.gitlab-ci.yml Tue Nov 26 10:15:05 2019 +0100 @@ -5,6 +5,12 @@ - dist - quality +cache: + paths: + - bin/ + - eggs/ + - parts/ + before_script: - export http_proxy=http://172.17.0.1:3128/ - export HTTP_PROXY=http://172.17.0.1:3128/ @@ -29,6 +35,7 @@ artifacts: paths: - ./dist + pylint: stage: quality allow_failure: true @@ -47,17 +54,32 @@ stage: quality allow_failure: true image: docker:stable + services: + - docker:stable-dind variables: DOCKER_DRIVER: overlay2 - services: - - docker:stable-dind + DOCKER_TLS_CERTDIR: "" script: - - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') + - | + if ! docker info &>/dev/null; then + if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then + export DOCKER_HOST='tcp://localhost:2375' + fi + fi - docker run --env SOURCE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock - "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code + "registry.gitlab.com/gitlab-org/security-products/codequality:12-0-stable" /code artifacts: reports: codequality: gl-code-quality-report.json + expire_in: 1 week + dependencies: [] + only: + refs: + - branches + - tags + except: + variables: + - $CODE_QUALITY_DISABLED