forked from oVirt/vdsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (48 loc) · 1.44 KB
/
.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
44
45
46
47
48
49
50
51
52
53
sudo: required
dist: xenial
group: edge
language: python
services:
- docker
# Travis use depth=50 by default. Use 1 for faster cloning.
git:
depth: 1
# Notes: we run the linters only on Fedora 28 to save time. This may miss some
# issues on CentOS but the chance is very low.
# TODO: add Fedora 29 python 3.7 build.
env:
matrix:
- DOCKER_IMAGE=ovirtorg/vdsm-test-centos
MAKE_TARGET=tests-py27
- DOCKER_IMAGE=ovirtorg/vdsm-test-fedora-28
MAKE_TARGET=tests-py27
- DOCKER_IMAGE=ovirtorg/vdsm-test-fedora-28
MAKE_TARGET=tests-py36
- DOCKER_IMAGE=ovirtorg/vdsm-test-fedora-28
MAKE_TARGET=lint
- DOCKER_IMAGE=ovirtorg/vdsm-test-fedora-29
MAKE_TARGET=tests-py27
before_install:
- docker --version
- docker pull $DOCKER_IMAGE
before_script:
# autogen.sh needs a tag, but the last tag may be 100 commits in the past,
# and we don't want to get the entire history for testing the tip.
- git tag v999 -a -m "tesing"
# Notes:
# - network tests on centos fail on low coverage, so we use lower value.
# - mount /run/udev to enable tests receiving udev events.
script:
- |
docker run \
--env TRAVIS_CI=1 \
--env PYLINT_JOBS=1 \
--env NETWORK_PY27_COVERAGE=38 \
--env NETWORK_PY36_COVERAGE=38 \
--privileged \
--rm \
-it \
--volume `pwd`:/vdsm:Z \
--volume /run/udev:/run/udev:Z \
$DOCKER_IMAGE \
bash -c "cd /vdsm && ./autogen.sh --system && make && make $MAKE_TARGET"