-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
55 lines (48 loc) · 1.57 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
task:
name: FreeBSD $FREEBSD_VERSION (Python $PYTHON_VERSION)
freebsd_instance:
cpu: 1
image_family: $FREEBSD_IMAGE
matrix:
- env:
FREEBSD_VERSION: 12.3
FREEBSD_IMAGE: freebsd-12-3
- env:
FREEBSD_VERSION: 13.1
FREEBSD_IMAGE: freebsd-13-1
matrix:
- env:
PYTHON_VERSION: 3.10
PYTHON_PORT_NAMES: python310 py310-sqlite3
PYTHON_EXE: python3.10
PIP_EXE: python3.10 -m pip
- env:
PYTHON_VERSION: 3.9
PYTHON_PORT_NAMES: python39 py39-sqlite3
PYTHON_EXE: python3.9
PIP_EXE: python3.9 -m pip
- env:
PYTHON_VERSION: 3.8
PYTHON_PORT_NAMES: python38 py38-sqlite3
PYTHON_EXE: python3.8
PIP_EXE: python3.8 -m pip
env:
CODECOV_TOKEN: ENCRYPTED[6995f47b1af730984aabeb833c897df376a13dfe01593bb2b816c2c99e51c1a57cf99e1b3e90bcb8a5fb9d220b3f3c74]
install_script:
- pkg install -y $PYTHON_PORT_NAMES cmake ninja gcc bash
- |
set -e
if [ -n "$PIP_PORT_NAME" ]; then
pkg install -y "$PIP_PORT_NAME"
else
pkg install -y curl
curl https://bootstrap.pypa.io/get-pip.py -o /tmp/get-pip.py
(cd /tmp && $PYTHON_EXE get-pip.py install)
$PIP_EXE install -U pip
fi
- $PIP_EXE install pipenv
- pipenv install --python $PYTHON_EXE --dev --deploy
test_script:
- pipenv run pytest --cov-report=xml --verbose --showlocals tests/
codecov_upload_script:
- OS="$FREEBSD_IMAGE" bash <(curl -s https://codecov.io/bash) -e OS,PYTHON_VERSION -n "$FREEBSD_IMAGE-$PYTHON_VERSION" -Z