Peter-Slump/python-keycloak-client

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
git:
  depth: false

sudo: false

language: python

matrix:
  fast_finish: true

python:
  - "2.7"
  - "3.4"
  - "3.5"
  - "3.6"
  - "nightly"

before_install:
  - pip install -U pip
  - pip install -U wheel setuptools
  - pip install flake8 codecov

install:
  - pip install -e .

env: TEST_OPTS="--cov=keycloak --ignore=tests/keycloak/aio" FLAKE_OPTS="--exclude=src/keycloak/aio,tests/keycloak/aio"

script:
  - flake8 src/keycloak tests/keycloak $FLAKE_OPTS
  - python setup.py test --addopts "$TEST_OPTS"

after_success:
  - codecov

.mixins:
  - &aio-mixin
    env: TEST_OPTS="--cov=keycloak"  FLAKE_OPTS=""
    install: pip install -e .[aio]

jobs:
  include:
    - python: "3.5"
      <<: *aio-mixin
    - python: "3.6"
      <<: *aio-mixin
    - python: "nightly"
      <<: *aio-mixin