forked from freebsd/iocage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
52 lines (51 loc) · 1.81 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
freebsd_instance:
image_family: freebsd-14-1
iocage_tests_task:
create_pool_script:
- truncate -s 20G /root/poolfile
- zpool create pool /root/poolfile
prepare_pkg_script:
- sed -i '' 's/quarterly/latest/g' /etc/pkg/FreeBSD.conf
pkg_cache:
folder: /var/cache/pkg
populate_script:
- pkg fetch -udy git python3 py311-sqlite3 devel/py-libzfs
- pkg fetch -Udy rust
- sed -E 's/([^<>=]+).*/py311-\1/' requirements.txt requirements-test.txt | xargs pkg fetch -Udy
install_pkgs_script:
- pkg update
- pkg install -Uy git python3 py311-sqlite3
configure_python_script:
- python3 -m ensurepip
matrix:
- name: Build python packages
install_rust_script:
- pkg install -Uy rust
pip_cache:
folder: ~/.cache/pip
populate_script:
- python3 -m pip install -r requirements-test.txt
- python3 -m pip install -r requirements.txt
- python3 -m pip install -U cython
update_cache_script:
- python3 -m pip install -U -r requirements-test.txt
- python3 -m pip install -U -r requirements.txt
upload_caches:
- pip
- name: Use prebuilt packages
install_python_packages_script:
- sed -E 's/([^<>=]+).*/py311-\1/' requirements.txt requirements-test.txt | xargs pkg install -Uy
# Necessary as long as py311-pytest and py311-pytest-pep8 conflict
- python3 -m pip install -r requirements-test.txt
env_setup_script:
- mount -t fdescfs null /dev/fd
- pkg install -Uy devel/py-libzfs
upload_caches:
- pkg
install_iocage_script:
- python3 setup.py install
test_script: pytest --zpool=pool tests/functional_tests --junit-xml=reports/pytest-report.xml -rA --image
always:
pytest_results_artifacts:
path: reports/*.xml
format: junit