-
Notifications
You must be signed in to change notification settings - Fork 36
/
.travis.yml
41 lines (41 loc) · 1.66 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
language: python
sudo: false
# Setting dist to prevent a change in the default from breaking tests.
dist: trusty
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
- "pypy"
- "pypy3"
matrix:
include:
- python: "3.7"
dist: xenial
- python: "3.8"
dist: xenial
addons:
apt:
packages:
- rpm
- enchant-2
install:
- if [[ "$(python --version 2>&1)" =~ Python\ (2\.*) ]]; then pip install -U jinja2; else echo "Skipping JINJA2 for $(python --version 2>&1)."; fi
- pip install -rtest-requirements.txt
- pip install -e ./
script:
- if [[ "$(python --version 2>&1)" =~ Python\ (2\.7.*|3\.[4-7].*) ]]; then pycodestyle rpmvenv/; else echo "Skipping PEP8 for $(python --version 2>&1)."; fi
- if [[ "$(python --version 2>&1)" =~ Python\ (2\.7.*|3\.[4-7].*) ]]; then pyflakes rpmvenv/; else echo "Skipping PyFlakes for $(python --version 2>&1)."; fi
# NOTE: This test was added to ensure that the "strip_binaries": false
# combined with QA_SKIP_BUILDROOT=1 would allow for a project to build
# despite a bug in the manylinux projects that caused some native Python
# extensions built as part of wheels to be incompatible with the 'strip'
# system utility.
- py.test -v --skip-binary-strip --python-git-url="https://github.com/kevinconway/rpmvenv_manylinux_issue.git" tests/
# NOTE: This test was added to verify that the manylinux bug was
# successfully patched and that we have not regressed. This will start
# failing if/when a regression happens.
- py.test -v --python-git-url="https://github.com/kevinconway/rpmvenv_manylinux_issue.git" tests/