forked from williballenthin/python-idb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (28 loc) · 1.41 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
language: python
matrix:
include:
- os: linux
python: 2.7
- os: linux
python: 3.5
install:
- pip install --upgrade pip
# via https://github.com/angr/angr/issues/52
- pip install -I --no-binary PyPI capstone
- pip install https://gitlab.com/pycqa/flake8/-/archive/9631dac52aa6ed8a3de9d0983c3c7b0267ae7d6d/flake8-9631dac52aa6ed8a3de9d0983c3c7b0267ae7d6d.zip
- pip install --upgrade pytest-cov pytest
- pip install -e .
# capstone puts the .so in the wrong directory when installed via pip
# ref: https://github.com/aquynh/capstone/issues/445
- find /home/travis/virtualenv/ -name '*libcapstone.so'
- find /home/travis/virtualenv/ -name "capstone" -type d | sort
- mv -f $(find /home/travis/virtualenv/ -name '*libcapstone.so' | head -n 1) $(find /home/travis/virtualenv/ -name "capstone" -type d | sort | head -n 1)
- ls $(find /home/travis/virtualenv/ -name "capstone" -type d | sort | head -n 1)
before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script:
- find . -name \*.py -exec pycodestyle --ignore=E501 {} \;
- py.test ./tests/ -v --cov=idb