language: python
cache: pip
python:
  - "3.4"
  - "3.5"
  - "3.6"

install:
  - pip install .[dev]

jobs:
  include:
    - script:
      - cd tests
      - py.test
    - stage: compliance
      python: 3.6
      script: pre-commit run --all-files

language: python
cache: pip
python:
  - "3.4"
  - "3.5"
  - "3.6"

jobs:
  include:
    - install:
      - pip install .[dev]
      script:
      - cd tests
      - py.test
    - stage: compliance
      script: pre-commit run --all-files

Move install to test stage
Move install to test stage
