.gitlab-ci.yml 332 Bytes
Newer Older
e_zombie's avatar
e_zombie committed
1
---
e_zombie's avatar
e_zombie committed
2 3
variables:
    jsonlint_version: "latest"
e_zombie's avatar
e_zombie committed
4 5 6 7
default:
  image:
    name: cytopia/jsonlint:$jsonlint_version
    entrypoint: ["/bin/sh", "-c"]
e_zombie's avatar
e_zombie committed
8 9 10 11 12 13 14 15

stages:
  - lint

jsonlint:
  stage: lint
  only:
    changes:
e_zombie's avatar
e_zombie committed
16 17
      - "*/*/*.json"
      - .gitlab-ci.yml
e_zombie's avatar
e_zombie committed
18
  script:
e_zombie's avatar
e_zombie committed
19
    - find . -name "*.json" | xargs -n 1 jsonlint
e_zombie's avatar
e_zombie committed
20
  tags:
e_zombie's avatar
e_zombie committed
21
    - docker