equal
deleted
inserted
replaced
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/pyams_utils/ |
25 - pylint src/pyams_utils/ |
26 |
26 |
|
27 quality: |
|
28 stage: test |
|
29 image: docker:latest |
|
30 variables: |
|
31 DOCKER_DRIVER: overlay |
|
32 allow_failure: true |
|
33 services: |
|
34 - docker:dind |
|
35 script: |
|
36 - docker pull codeclimate/codeclimate |
|
37 - VOLUME_PATH=/tmp/builds"$(echo $PWD | sed 's|^/[^/]*||')" |
|
38 - docker run -v /tmp/cc:/tmp/cc -v $VOLUME_PATH:/code -v /var/run/docker.sock:/var/run/docker.sock codeclimate/codeclimate validate-config |
|
39 - ls -lash $PWD |
|
40 - echo $PWD |
|
41 - docker run --env CODECLIMATE_CODE="$VOLUME_PATH" -v /tmp/cc:/tmp/cc -v $VOLUME_PATH:/code -v /var/run/docker.sock:/var/run/docker.sock codeclimate/codeclimate analyze |
|
42 - ls -lash $PWD |
|
43 artifacts: |
|
44 reports: |
|
45 codequality: codeclimate.json |
|
46 |
27 #quality: |
47 #quality: |
28 # stage: test |
48 # stage: test |
29 # image: docker:stable |
49 # image: docker:stable |
30 # variables: |
50 # variables: |
31 # DOCKER_DRIVER: overlay2 |
51 # DOCKER_DRIVER: overlay2 |