version: 2.1

jobs:
  ubuntu1804-python2:
    docker:
      - image: stbtester/circleci:ubuntu1804-python2
    environment:
      python_version: 2.7
      LANG: en_GB.UTF-8
      SHELL: /bin/bash
      TERM: xterm
      enable_virtual_stb: no
      parallel: xargs
    steps:
      - checkout
      - pylint
      - pytest
      - integrationtests

  ubuntu1804-python3:
    docker:
      - image: stbtester/circleci:ubuntu1804-python3
    environment:
      python_version: 3
      LANG: en_GB.UTF-8
      SHELL: /bin/bash
      TERM: xterm
      enable_virtual_stb: no
      parallel: xargs
    steps:
      - checkout
      - pylint
      - pytest

commands:
  pylint:
    steps:
      - run:
          name: make check-pylint
          command: |
            tesseract --version
            pylint --version
            make check-pylint
  pytest:
    steps:
      - run: make check-pytest
  integrationtests:
    steps:
      - run: make check-integrationtests

workflows:
  test_all:
    jobs:
      - ubuntu1804-python2
      - ubuntu1804-python3

version: 2.1

jobs:
  ubuntu1804-python2:
    docker:
      - image: stbtester/circleci:ubuntu1804-python2
    environment:
      python_version: 2.7
      LANG: en_GB.UTF-8
      SHELL: /bin/bash
      TERM: xterm
      enable_virtual_stb: no
      parallel: xargs
    steps:
      - checkout
      - pylint
      - pytest
      - integrationtests

  ubuntu1804-python3:
    docker:
      - image: stbtester/circleci:ubuntu1804-python3
    environment:
      python_version: 3
      LANG: en_GB.UTF-8
      SHELL: /bin/bash
      TERM: xterm
      enable_virtual_stb: no
      parallel: xargs
    steps:
      - checkout
      - pylint
      - pytest
      - integrationtests

commands:
  pylint:
    steps:
      - run:
          name: make check-pylint
          command: |
            tesseract --version
            pylint --version
            make check-pylint
  pytest:
    steps:
      - run: make check-pytest
  integrationtests:
    steps:
      - run: make check-integrationtests

workflows:
  test_all:
    jobs:
      - ubuntu1804-python2
      - ubuntu1804-python3

Enable the integrationtests on Python 3
CI: Enable the integrationtests on Python 3

Many of them are failing but I'll fix them over the next few commits.
