Skip to content
Snippets Groups Projects
Commit ddc048bf authored by Iñigo Moreno i Caireta's avatar Iñigo Moreno i Caireta
Browse files

Generate undefined badges

parent 5d2f3f26
No related branches found
No related tags found
No related merge requests found
Pipeline #57001 passed
...@@ -16,7 +16,6 @@ services: ...@@ -16,7 +16,6 @@ services:
stages: stages:
- build - build
- test
before_script: before_script:
- apk add --update bash coreutils tar wget py-pip - apk add --update bash coreutils tar wget py-pip
...@@ -30,3 +29,14 @@ include: ...@@ -30,3 +29,14 @@ include:
default: default:
tags: tags:
- docker - docker
badges:
stage: .post
script:
- if [ ! -f "./badges/kinetic.svg" ]; then anybadge -l kinetic -v undefined -c gray -f ./badges/kinetic.svg; fi
- if [ ! -f "./badges/melodic.svg" ]; then anybadge -l melodic -v undefined -c gray -f ./badges/melodic.svg; fi
- if [ ! -f "./badges/noetic.svg" ]; then anybadge -l noetic -v undefined -c gray -f ./badges/noetic.svg; fi
artifacts:
paths:
- ./badges
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
########################################################## ##########################################################
clang_format: clang_format:
stage: test stage: .post
before_script: before_script:
- apk add --update bash coreutils tar wget - apk add --update bash coreutils tar wget
- git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy
...@@ -33,7 +33,7 @@ python_syntax: ...@@ -33,7 +33,7 @@ python_syntax:
bash_syntax: bash_syntax:
before_script: before_script:
- apk add --update shellcheck - apk add --update shellcheck
stage: test stage: .post
script: script:
- RET=0 - RET=0
- find . -type f -name '*.sh' -exec shellcheck -s sh {} + || RET=1 - find . -type f -name '*.sh' -exec shellcheck -s sh {} + || RET=1
...@@ -49,7 +49,7 @@ bash_syntax: ...@@ -49,7 +49,7 @@ bash_syntax:
## https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md ## https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
########################################################## ##########################################################
markdown_syntax: markdown_syntax:
stage: test stage: .post
script: docker run -v ${PWD}:/ac tecnalia-docker-dev.artifact.tecnalia.com/cytopia/awesome-ci syntax-markdown --path=/ac --extension=md --ignore=.ci_config --custom="-r ~MD013,~MD014" script: docker run -v ${PWD}:/ac tecnalia-docker-dev.artifact.tecnalia.com/cytopia/awesome-ci syntax-markdown --path=/ac --extension=md --ignore=.ci_config --custom="-r ~MD013,~MD014"
when: always when: always
...@@ -60,7 +60,7 @@ markdown_syntax: ...@@ -60,7 +60,7 @@ markdown_syntax:
## Uses https://github.com/cytopia/awesome-ci ## Uses https://github.com/cytopia/awesome-ci
########################################################## ##########################################################
file_syntax: file_syntax:
stage: test stage: .post
script: script:
- RET=0 - RET=0
- docker run -v ${PWD}:/ac tecnalia-docker-dev.artifact.tecnalia.com/cytopia/awesome-ci file-trailing-space --path=/ac --extension=py,txt,cpp,h,md,sh,bash,xml,launch --ignore=.ci_config || RET=1 - docker run -v ${PWD}:/ac tecnalia-docker-dev.artifact.tecnalia.com/cytopia/awesome-ci file-trailing-space --path=/ac --extension=py,txt,cpp,h,md,sh,bash,xml,launch --ignore=.ci_config || RET=1
...@@ -74,7 +74,7 @@ file_syntax: ...@@ -74,7 +74,7 @@ file_syntax:
## so this is a custom-made "dirty" script ## so this is a custom-made "dirty" script
########################################################## ##########################################################
adoc_syntax: adoc_syntax:
stage: test stage: .post
image: tecnalia-docker-dev.artifact.tecnalia.com/alpine image: tecnalia-docker-dev.artifact.tecnalia.com/alpine
before_script: before_script:
- apk add --update curl asciidoctor bash - apk add --update curl asciidoctor bash
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment