Skip to content

Commit

Permalink
Expand tests to Python 2.7 and 3.5-3.10 for GNU/Linux, macOS and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Oct 18, 2020
1 parent 3b9904c commit 60c57ae
Show file tree
Hide file tree
Showing 3 changed files with 142 additions and 84 deletions.
176 changes: 140 additions & 36 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,186 @@
# Beta opt-in
# https://docs.travis-ci.com/user/build-config-validation#beta-opt-in
version: ~> 1.0

language: python
dist: xenial
os: linux

env:
global:
- MAKEFLAGS="-j 2"

matrix:
jobs:
fast_finish: true
include:
- os: linux
- name: Python 2.7 on GNU/Linux
os: linux
python: "2.7"
env: TOXENV=py27
- os: linux
- name: Python 3.5 on GNU/Linux
os: linux
python: "3.5"
env: TOXENV=py35
- os: linux
- name: Python 3.6 on GNU/Linux
os: linux
python: "3.6"
env:
- TOXENV=py36
# To help catch regression seen in #615
- LC_ALL=C
- os: linux
- name: Python 3.7 on GNU/Linux
os: linux
python: "3.7"
env: TOXENV=py37
dist: xenial
- os: linux
python: "3.8-dev"
- name: Python 3.8 on GNU/Linux
os: linux
python: "3.8"
env: TOXENV=py38
dist: xenial
- os: linux
- name: Python 3.9 on GNU/Linux
os: linux
python: 3.9-dev
env: TOXENV=py39
- name: Python 3.10 on GNU/Linux
os: linux
python: nightly
env: TOXENV=py310
- name: PyPy 2.7 on GNU/Linux
os: linux
python: "pypy"
env: TOXENV=pypy
- os: linux
- name: PyPy 3.6 on GNU/Linux
os: linux
python: "pypy3"
env: TOXENV=pypy3
- name: "Python: 2.7"
- name: Python 3.5 on macOS
os: osx
language: generic
env:
- PYTHON_VERSION=2.7
- TOXENV=py27
- name: "Python: 3.7"
language: shell
install:
- unset PYENV_ROOT
- curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.5.10
- pyenv global 3.5.10
env: TOXENV=py35
- name: Python 3.6 on macOS
os: osx
language: generic
env:
- PYTHON_VERSION=3.7
- TOXENV=py37
- name: "Python: 2.7"
language: shell
install:
- unset PYENV_ROOT
- curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.6.12
- pyenv global system 3.6.12
env: TOXENV=py36
- name: Python 3.7 on macOS
os: osx
language: shell
install:
- unset PYENV_ROOT
- curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.7.9
- pyenv global system 3.7.9
env: TOXENV=py37
- name: Python 3.8 on macOS
os: osx
language: shell
install:
- unset PYENV_ROOT
- curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.8.6
- pyenv global system 3.8.6
env: TOXENV=py38
- name: Python 3.9 on macOS
os: osx
language: shell
install:
- unset PYENV_ROOT
- curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.9-dev
- pyenv global system 3.9-dev
env: TOXENV=py39
- name: Python 3.10 on macOS
os: osx
language: shell
install:
- unset PYENV_ROOT
- curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
- export PATH="$HOME/.pyenv/bin:$PATH"
- eval "$(pyenv init -)"
- pyenv install --skip-existing 3.10-dev
- pyenv global system 3.10-dev
env: TOXENV=py310
- name: Python 2.7 on Windows
os: windows
language: shell
before_install:
- choco install python2
- python -m pip install --upgrade pip
env:
- TOXENV=py27
- export PATH="/c/Python27:/c/Python27/Scripts:$PATH"
- name: "Python 3.7"
- name: Python 3.5 on Windows
os: windows
language: shell
before_install:
- choco install python --version 3.7
- python -m pip install --upgrade pip
- choco install python3 --version=3.5.4
env:
- TOXENV=py35
- export PATH="/c/Python35:/c/Python35/Scripts:$PATH"
- name: Python 3.6 on Windows
os: windows
language: shell
before_install:
- choco install python3 --version=3.6.8
env:
- TOXENV=py36
- export PATH="/c/Python36:/c/Python36/Scripts:$PATH"
- name: Python 3.7 on Windows
os: windows
language: shell
before_install:
-choco install python3 --version=3.7.9
env:
- TOXENV=py37
- export PATH="/c/Python37:/c/Python37/Scripts:$PATH"
- name: "Python: 3.8"
- name: Python 3.8 on Windows
os: windows
language: shell
before_install:
- choco install python --version 3.8
- python -m pip install --upgrade pip
- choco install python3 --version=3.8.6
env:
- TOXENV=py38
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
- name: Python 3.9 on Windows
os: windows
language: shell
before_install:
- choco install python3 --version=3.9.0
env:
- TOXENV=py39
- export PATH="/c/Python39:/c/Python39/Scripts:$PATH"
- name: Python 3.10 on Windows
os: windows
language: shell
before_install:
- choco install python3 --pre
env:
- TOXENV=py310
- export PATH="/c/Python310:/c/Python310/Scripts:$PATH"

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then chmod +x .travis/install.sh && .travis/install.sh; fi

install:
- python -m pip install tox
- tox --notest # Note: keep it!
before_script:
- python -m pip install -U pip tox
- python -m tox --notest # Note: keep it!

script:
- tox
- python -m tox

notifications:
email: false
47 changes: 0 additions & 47 deletions .travis/install.sh

This file was deleted.

3 changes: 2 additions & 1 deletion changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ Changelog

- Add logger parameter for the LoggingEventHandler (`#676 <https://github.com/gorakhargosh/watchdog/pull/676>`_)
- Replace mutable default arguments with ``if None`` implementation (`#677 <https://github.com/gorakhargosh/watchdog/pull/677>`_)
- Expand tests to Python 2.7 and 3.5-3.10 for GNU/Linux, macOS and Windows
- [mac] Performance improvements for the `fsevents` module (`#680 <https://github.com/gorakhargosh/watchdog/pull/680>`_)
- Thanks to our beloved contributors: @Sraw, @CCP-Aporia
- Thanks to our beloved contributors: @Sraw, @CCP-Aporia, @BoboTiG


0.10.3
Expand Down

0 comments on commit 60c57ae

Please sign in to comment.