.gitlab-ci.yml 888 Bytes
Newer Older
Prada Sarasola, Miguel's avatar
Prada Sarasola, Miguel committed
1 2 3 4
shellcheck:
  image: koalaman/shellcheck-alpine
  script: 'shellcheck deploy/base/ros_entrypoint.bash scripts/*sh'
  allow_failure: yes
5

6 7 8 9 10 11 12
# The ignored rules in hadolint checks are
# DL3006 Always tag the version of an image explicitly
#   One of the Dockerfiles uses a temporary image which isn't important to tag
#   and the other uses a tagged image through an ARG, which apparently is not
#   properly recognized.
# DL3008 Pin versions in apt-get install
#   A bit overkill
13 14 15 16
dockerfiles:
  image: hadolint/hadolint:latest-debian
  script:
    - RET=0
17 18
    - hadolint --ignore DL3006 --ignore DL3008 deploy/base/Dockerfile || RET=1
    - hadolint --ignore DL3006 --ignore DL3008 deploy/dev/Dockerfile || RET=1
19 20
    - exit $RET
  allow_failure: yes
21 22 23

yamllint:
  image: sdesbure/yamllint
24
  script: "yamllint -d relaxed $(find . \\( -name '*.yml' -o -name '*.yaml' \\))"
25
  allow_failure: yes