stages:
  - test

before_script:
  - mkdir -p /home/pi/ssl
  - mkdir -p /home/pi/.ssh
  - touch /home/pi/ssl/chain
  - touch /home/pi/ssl/key
  - touch /home/pi/.ssh/id_rsa

.lint: &lint
  - hass --version
  - hass --script check_config -c .

lint:current:
  stage: test
  image: homeassistant/amd64-homeassistant:0.102.3
  script:
    - *lint

lint:latest:
  stage: test
  image: homeassistant/amd64-homeassistant:latest
  script:
    - *lint