diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 000000000..183dbbb15 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,18 @@ +freebsd_instance: + image_family: freebsd-12-1 + +task: + install_script: + - pkg install -y python37 py37-sqlite3 + # Print the Python version, only to be sure we are running the version we want + - python3.7 -c 'import platform; print("Python", platform.python_version())' + # Check SQLite3 is installed + - python3.7 -c 'import sqlite3; print("SQLite3", sqlite3.version)' + setup_script: + - python3.7 -m ensurepip + - python3.7 -m pip install -U pip + - python3.7 -m pip install -r requirements-tests.txt + lint_script: + - python3.7 -m flake8 docs src tests tools + tests_script: + - python3.7 -bb -m pytest tests diff --git a/changelog.rst b/changelog.rst index fd3edd237..ef18a9621 100644 --- a/changelog.rst +++ b/changelog.rst @@ -12,6 +12,7 @@ Changelog - Refactored ``dispatch()`` method of ``FileSystemEventHandler``, ``PatternMatchingEventHandler`` and ``RegexMatchingEventHandler`` - Improve tests support on non Windows/Linux platforms (`#633 `__) +- Added FreeBSD CI support (`#532 `__) - Thanks to our beloved contributors: @BoboTiG, @evilham diff --git a/requirements-tests.txt b/requirements-tests.txt new file mode 100644 index 000000000..a47609cdc --- /dev/null +++ b/requirements-tests.txt @@ -0,0 +1,7 @@ +-e ".[watchmedo]" +eventlet +flake8 +flaky +pytest +pytest-cov +pytest-timeout diff --git a/tox.ini b/tox.ini index 0dd48a0fe..b768bfd43 100644 --- a/tox.ini +++ b/tox.ini @@ -4,13 +4,7 @@ skip_missing_interpreters = True [testenv] deps = - -e . - eventlet - flake8 - pytest-cov - pytest-timeout - flaky -extras = watchmedo + -r requirements-tests.txt commands = python -m flake8 docs tools src tests python -bb -m pytest {posargs}