forked from delphix/sdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (56 loc) · 1.42 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
54
55
56
57
58
59
60
61
62
63
64
dist: xenial
language: python
python:
- "3.6"
install:
- python3 -m pip install yapf
- python3 -m pip install pylint
- python3 -m pip install pytest
script:
#
# We first record the version of everything we use as a baseline
# for future regressions introduced by these tools being upgraded.
#
- yapf --version
- pylint --version
- pytest --version
- python3 --version
#
# Ensure code is style and lint clean.
#
- yapf --diff --style google --recursive sdb
- yapf --diff --style google --recursive tests
- pylint -d duplicate-code sdb
- pylint -d duplicate-code tests
#
# Ensure there aren't new regressions in unit tests.
#
- pytest -v tests
#
# Ensure installing sdb doesn't fail.
#
- python3 setup.py install
#
# We depend on "drgn" for running our tests, and since there isn't any
# package for it already, we must build it from source.
#
# Also note, we don't use any specific version of the "drgn" source. In
# addition to it lacking packages, "drgn" also lacks any releases; thus,
# we just pull the HEAD of the master branch, and hope for the best.
#
before_script:
- git clone https://github.com/osandov/drgn.git
- cd drgn
- python3 setup.py install
- cd -
- rm -rf drgn
#
# Addtionally, since we're building "drgn" from source, we need to
# ensure we have its build dependencies installed.
#
addons:
apt:
packages:
- libelf-dev
- libdw-dev
- libomp-dev