|
@ -1,4 +1,5 @@ |
|
|
stages: |
|
|
stages: |
|
|
|
|
|
- codequality |
|
|
- build |
|
|
- build |
|
|
- deploy |
|
|
- deploy |
|
|
|
|
|
|
|
@ -17,6 +18,19 @@ build: |
|
|
paths: |
|
|
paths: |
|
|
- build/.pio/build/lolin_d32_pro/*.bin |
|
|
- build/.pio/build/lolin_d32_pro/*.bin |
|
|
|
|
|
|
|
|
|
|
|
codequality: |
|
|
|
|
|
image: docker:latest |
|
|
|
|
|
variables: |
|
|
|
|
|
DOCKER_DRIVER: overlay |
|
|
|
|
|
services: |
|
|
|
|
|
- docker:dind |
|
|
|
|
|
script: |
|
|
|
|
|
- docker pull codeclimate/codeclimate |
|
|
|
|
|
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate init |
|
|
|
|
|
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.json |
|
|
|
|
|
artifacts: |
|
|
|
|
|
paths: [codeclimate.json] |
|
|
|
|
|
|
|
|
deploy: |
|
|
deploy: |
|
|
stage: deploy |
|
|
stage: deploy |
|
|
image: alpine:latest |
|
|
image: alpine:latest |
|
|