Skip to content

Commit

Permalink
Update tests for FreeBSD and make these more visible by adding a badge (
Browse files Browse the repository at this point in the history
#841)

* 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

* Add a badge for FreeBSD tests

* Make the FreeBSD tests visible (where Cirrus CI still needs to be set up for the repository)
  • Loading branch information
knobix committed Sep 18, 2021
1 parent 5a7022c commit d444b4a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .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
3 changes: 3 additions & 0 deletions README.rst
Expand Up @@ -2,6 +2,7 @@ Watchdog
========

|Build Status|
|CirrusCI Status|

Python API and shell utilities to monitor file system events.

Expand Down Expand Up @@ -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/

0 comments on commit d444b4a

Please sign in to comment.