-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
43 lines (35 loc) · 891 Bytes
/
.travis.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
sudo: required
dist: xenial
language: python
python:
- "3.6"
- "3.7"
- "3.8"
env:
global:
- TEST_POOL="zpool"
cache:
pip: true
custom_install: true
before_install:
- sudo scripts/travis/ubuntu/setup_zfs_requirements.sh
- sudo scripts/travis/common/create_test_root.sh
branches:
only:
- /.*/ # Build all branches
install:
- pip install .
- python setup.py install
- pip install '.[test]'
script:
- |
sudo env "PATH=$PATH" \
pytest --cov=zedenv tests \
--unsafe \
--zpool="${TEST_POOL}" \
--root-dataset="${TEST_POOL}/ROOT/default" \
--zfs-version="$(modinfo zfs | grep -iw version | awk '{print $2}')"
after_script:
- modinfo zfs | grep -iw version
- modinfo spl | grep -iw version
- sudo env "PATH=$PATH" pytest --codestyle