# https://travis-ci.org/HearthSim/python-hearthstone
language: python

python: "3.8"

env:
  - TOXENV=py38
  - TOXENV=flake8
  - TOXENV=mypy

install:
  - pip install --upgrade pip setuptools wheel
  - pip install tox

script:
  - tox

stages:
  - name: test
  - name: deploy
    if: tag IS present

jobs:
  fast_finish: true
  include:
    - stage: deploy
      install:
        - pip install --upgrade pip setuptools wheel

      script: echo Releasing $TRAVIS_TAG

      deploy:
        provider: pypi
        user: $PYPI_USERNAME
        password: $PYPI_PASSWORD
        distributions: "sdist bdist_wheel"
        on:
          tags: true

# https://travis-ci.org/HearthSim/python-hearthstone
language: python

python: "3.8"

env:
  - TOXENV=py38
  - TOXENV=flake8
  - TOXENV=mypy

install:
  - pip install --upgrade pip setuptools types-setuptools wheel
  - pip install tox

script:
  - tox

stages:
  - name: test
  - name: deploy
    if: tag IS present

jobs:
  fast_finish: true
  include:
    - stage: deploy
      install:
        - pip install --upgrade pip setuptools wheel

      script: echo Releasing $TRAVIS_TAG

      deploy:
        provider: pypi
        user: $PYPI_USERNAME
        password: $PYPI_PASSWORD
        distributions: "sdist bdist_wheel"
        on:
          tags: true

Install types-setuptools as part of Travis CI pipeline
Install types-setuptools as part of Travis CI pipeline
