|
|
@ -1,4 +1,5 @@ |
|
|
|
stages: |
|
|
|
- codequality |
|
|
|
- build |
|
|
|
- deploy |
|
|
|
|
|
|
@ -17,6 +18,19 @@ build: |
|
|
|
paths: |
|
|
|
- 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: |
|
|
|
stage: deploy |
|
|
|
image: alpine:latest |
|
|
|