forked from jwilk/python-afl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (56 loc) · 1.72 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
dist: xenial
language: python
jobs:
include:
- python: "2.6"
env: CYTHON=0.19
dist: trusty
- python: "2.7"
- python: "3.2"
env: CYTHON=0.19
dist: trusty
- python: "3.3"
dist: trusty
- python: "3.4"
- python: "3.5"
- python: "3.6"
- python: "3.7"
- python: "3.8"
- python: "3.9"
- python: "3.10-dev"
allow_failures:
- python: "2.6"
dist: trusty
cache: pip
before_install:
- if [[ $TRAVIS_PYTHON_VERSION = 3.[234] ]]; then if_pygments=:; fi
- pyflakes=pyflakes
- if [[ $TRAVIS_PYTHON_VERSION = 2.6 ]]; then pyflakes='pyflakes<2'; fi
- if [[ $TRAVIS_PYTHON_VERSION = 3.[23] ]]; then pyflakes='pyflakes<2'; fi
- if [[ $TRAVIS_PYTHON_VERSION = 2.6 ]]; then if_pylint=:; fi
- if [[ $TRAVIS_PYTHON_VERSION = 3.[23] ]]; then if_pylint=:; fi
- if [[ $TRAVIS_PYTHON_VERSION = *-dev ]]; then if_pylint=:; fi
- cython=cython${CYTHON:+==$CYTHON}
- if [[ $TRAVIS_PYTHON_VERSION = 3.10-* ]]; then pip install --upgrade --no-deps --force-reinstall --no-binary ':all:' nose; fi
install:
- mkdir deps
- wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz -O deps/afl.tar.gz
- tar -xvzf deps/afl.tar.gz -C deps/
- make -C deps/afl-*/ install PREFIX=~/.local
- pip install --verbose $cython
- pip install $pyflakes
- pip install pycodestyle pydiatra
- $if_pylint pip install pylint
- $if_pygments pip install docutils pygments
script:
- dpkg-parsechangelog -ldoc/changelog --all 2>&1 >/dev/null | { ! grep .; }
- PYTHONWARNINGS=error::FutureWarning python setup.py build
- python setup.py install
- nosetests --verbose
- pycodestyle .
- python -m pydiatra .
- pyflakes .
- $if_pylint private/run-pylint
- $if_pygments private/check-rst
- curl -fsS https://pypi.org/simple/afl/; [ $? -eq 22 ]
# vim:ts=2 sts=2 sw=2 et