Skip to content

Commit 2cd170d

Browse files
emastevstinner
andauthoredSep 6, 2023
gh-91960: Add FreeBSD build and test using Cirrus-CI (#91961)
Cirrus-CI is a hosted CI service that supports FreeBSD, Linux, macOS, and Windows. Add a .cirrus.yml configuration file to provide CI coverage on pull requests for FreeBSD 13.2. Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent f8a0479 commit 2cd170d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎.cirrus.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
freebsd_task:
2+
freebsd_instance:
3+
matrix:
4+
- image: freebsd-13-2-release-amd64
5+
# Turn off TCP and UDP blackhole. It is not enabled by default in FreeBSD,
6+
# but it is in the FreeBSD GCE images as used by Cirrus-CI. It causes even
7+
# local local connections to fail with ETIMEDOUT instead of ECONNREFUSED.
8+
# For more information see https://reviews.freebsd.org/D41751 and
9+
# https://github.com/cirruslabs/cirrus-ci-docs/issues/483.
10+
sysctl_script:
11+
- sysctl net.inet.tcp.blackhole=0
12+
- sysctl net.inet.udp.blackhole=0
13+
build_script:
14+
- mkdir build
15+
- cd build
16+
- ../configure --with-pydebug
17+
- make -j$(sysctl -n hw.ncpu)
18+
pythoninfo_script:
19+
- cd build && make pythoninfo
20+
test_script:
21+
- cd build
22+
# dtrace fails to build on FreeBSD - see gh-73263
23+
- make buildbottest TESTOPTS="-j0 -x test_dtrace --timeout=600"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FreeBSD 13.2 CI coverage for pull requests is now provided by Cirrus-CI (a hosted CI service that supports Linux, macOS, Windows, and FreeBSD).

0 commit comments

Comments
 (0)