equal
deleted
inserted
replaced
2 |
2 |
3 stages: |
3 stages: |
4 - test |
4 - test |
5 - dist |
5 - dist |
6 - quality |
6 - quality |
|
7 |
|
8 cache: |
|
9 paths: |
|
10 - bin/ |
|
11 - eggs/ |
|
12 - parts/ |
7 |
13 |
8 before_script: |
14 before_script: |
9 - export http_proxy=http://172.17.0.1:3128/ |
15 - export http_proxy=http://172.17.0.1:3128/ |
10 - export HTTP_PROXY=http://172.17.0.1:3128/ |
16 - export HTTP_PROXY=http://172.17.0.1:3128/ |
11 - export https_proxy=http://172.17.0.1:3128/ |
17 - export https_proxy=http://172.17.0.1:3128/ |
27 script: |
33 script: |
28 - ./bin/buildout setup setup.py clean --all sdist bdist_egg bdist_wheel |
34 - ./bin/buildout setup setup.py clean --all sdist bdist_egg bdist_wheel |
29 artifacts: |
35 artifacts: |
30 paths: |
36 paths: |
31 - ./dist |
37 - ./dist |
|
38 |
32 pylint: |
39 pylint: |
33 stage: quality |
40 stage: quality |
34 allow_failure: true |
41 allow_failure: true |
35 script: |
42 script: |
36 - pip install pylint-exit anybadge |
43 - pip install pylint-exit anybadge |
45 |
52 |
46 quality: |
53 quality: |
47 stage: quality |
54 stage: quality |
48 allow_failure: true |
55 allow_failure: true |
49 image: docker:stable |
56 image: docker:stable |
|
57 services: |
|
58 - docker:stable-dind |
50 variables: |
59 variables: |
51 DOCKER_DRIVER: overlay2 |
60 DOCKER_DRIVER: overlay2 |
52 services: |
61 DOCKER_TLS_CERTDIR: "" |
53 - docker:stable-dind |
|
54 script: |
62 script: |
55 - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') |
63 - | |
|
64 if ! docker info &>/dev/null; then |
|
65 if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then |
|
66 export DOCKER_HOST='tcp://localhost:2375' |
|
67 fi |
|
68 fi |
56 - docker run |
69 - docker run |
57 --env SOURCE_CODE="$PWD" |
70 --env SOURCE_CODE="$PWD" |
58 --volume "$PWD":/code |
71 --volume "$PWD":/code |
59 --volume /var/run/docker.sock:/var/run/docker.sock |
72 --volume /var/run/docker.sock:/var/run/docker.sock |
60 "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code |
73 "registry.gitlab.com/gitlab-org/security-products/codequality:12-0-stable" /code |
61 artifacts: |
74 artifacts: |
62 reports: |
75 reports: |
63 codequality: gl-code-quality-report.json |
76 codequality: gl-code-quality-report.json |
|
77 expire_in: 1 week |
|
78 dependencies: [] |
|
79 only: |
|
80 refs: |
|
81 - branches |
|
82 - tags |
|
83 except: |
|
84 variables: |
|
85 - $CODE_QUALITY_DISABLED |