From c7616c9086c88266d9ad9ac7b8a0e4039d048340 Mon Sep 17 00:00:00 2001 From: Kai Knoblich <43905002+knobix@users.noreply.github.com> Date: Sat, 18 Sep 2021 12:58:24 +0200 Subject: [PATCH 1/2] Update tests for FreeBSD * Use more recent images (12.2- and 13.0-RELEASE because 12.1-RELEASE is End-of-Life since 31st January 2021) * Test against Python 3.8 which is the default in the FreeBSD ports tree at the moment --- .cirrus.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 183dbbb1..488ce791 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,18 +1,21 @@ -freebsd_instance: - image_family: freebsd-12-1 - task: + matrix: + freebsd_instance: + image_family: freebsd-13-0 + freebsd_instance: + image_family: freebsd-12-2 + install_script: - - pkg install -y python37 py37-sqlite3 + - pkg install -y python38 py38-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())' + - python3.8 -c 'import platform; print("Python", platform.python_version())' # Check SQLite3 is installed - - python3.7 -c 'import sqlite3; print("SQLite3", sqlite3.version)' + - python3.8 -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 + - python3.8 -m ensurepip + - python3.8 -m pip install -U pip + - python3.8 -m pip install -r requirements-tests.txt lint_script: - - python3.7 -m flake8 docs src tests tools + - python3.8 -m flake8 docs src tests tools tests_script: - - python3.7 -bb -m pytest tests + - python3.8 -bb -m pytest tests From d3f845cbd649422827e89d9dd38ded9486dd6506 Mon Sep 17 00:00:00 2001 From: Kai Knoblich <43905002+knobix@users.noreply.github.com> Date: Sat, 18 Sep 2021 13:21:13 +0200 Subject: [PATCH 2/2] Add a badge for FreeBSD tests * Make the FreeBSD tests visible (where Cirrus CI still needs to be set up for the repository) --- README.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rst b/README.rst index 9593a3a1..a777fbc4 100755 --- a/README.rst +++ b/README.rst @@ -2,6 +2,7 @@ Watchdog ======== |Build Status| +|CirrusCI Status| Python API and shell utilities to monitor file system events. @@ -301,3 +302,5 @@ to do: .. |Build Status| image:: https://github.com/gorakhargosh/watchdog/workflows/Tests/badge.svg :target: https://github.com/gorakhargosh/watchdog/actions?query=workflow%3ATests +.. |CirrusCI Status| image:: https://api.cirrus-ci.com/github/gorakhargosh/watchdog.svg + :target: https://cirrus-ci.com/github/gorakhargosh/watchdog/