---
image: python:3.6

stages:
  - lint

yamllint:
  stage: lint
  script:
    - pip install yamllint==1.15.0
    - yamllint -c .yamllint.yml .

ansible-lint:
  stage: lint
  script:
    - pip install ansible-lint==4.0.0
    - ansible-lint *.yml
...