-
-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update tests for FreeBSD and make these more visible by adding a badge (
#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
Showing
2 changed files
with
17 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters