image: python:latest
stages:
  - validate
  - test

before_script:
  - python -V

check:
  stage: validate
  script:
    - pip install flake8
    - flake8 karma.py --max-line-length 120

pytest:
  stage: test
  script:
    - pip install errbot pytest
    - pytest
