Skip to content

Commit d444b4a

Browse files
authored
Update tests for FreeBSD and make these more visible by adding a badge (gorakhargosh#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)
1 parent 5a7022c commit d444b4a

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

.cirrus.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
freebsd_instance:
2-
image_family: freebsd-12-1
3-
41
task:
2+
matrix:
3+
freebsd_instance:
4+
image_family: freebsd-13-0
5+
freebsd_instance:
6+
image_family: freebsd-12-2
7+
58
install_script:
6-
- pkg install -y python37 py37-sqlite3
9+
- pkg install -y python38 py38-sqlite3
710
# Print the Python version, only to be sure we are running the version we want
8-
- python3.7 -c 'import platform; print("Python", platform.python_version())'
11+
- python3.8 -c 'import platform; print("Python", platform.python_version())'
912
# Check SQLite3 is installed
10-
- python3.7 -c 'import sqlite3; print("SQLite3", sqlite3.version)'
13+
- python3.8 -c 'import sqlite3; print("SQLite3", sqlite3.version)'
1114
setup_script:
12-
- python3.7 -m ensurepip
13-
- python3.7 -m pip install -U pip
14-
- python3.7 -m pip install -r requirements-tests.txt
15+
- python3.8 -m ensurepip
16+
- python3.8 -m pip install -U pip
17+
- python3.8 -m pip install -r requirements-tests.txt
1518
lint_script:
16-
- python3.7 -m flake8 docs src tests tools
19+
- python3.8 -m flake8 docs src tests tools
1720
tests_script:
18-
- python3.7 -bb -m pytest tests
21+
- python3.8 -bb -m pytest tests

README.rst

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Watchdog
22
========
33

44
|Build Status|
5+
|CirrusCI Status|
56

67
Python API and shell utilities to monitor file system events.
78

@@ -301,3 +302,5 @@ to do:
301302

302303
.. |Build Status| image:: https://github.com/gorakhargosh/watchdog/workflows/Tests/badge.svg
303304
:target: https://github.com/gorakhargosh/watchdog/actions?query=workflow%3ATests
305+
.. |CirrusCI Status| image:: https://api.cirrus-ci.com/github/gorakhargosh/watchdog.svg
306+
:target: https://cirrus-ci.com/github/gorakhargosh/watchdog/

0 commit comments

Comments
 (0)