Skip to content

Commit e17cb35

Browse files
authored
Merge pull request #275 from SR4ven/python_ci
Run tests against multiple python versions
2 parents 6be1bc7 + 50a0e15 commit e17cb35

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

.travis.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1-
language: python
21
dist: xenial
32
sudo: required
4-
5-
before_install: sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers
3+
language: python
64

75
stages:
86
- Test
7+
- name: Deploy
8+
if: (repo = jtpereyda/boofuzz) AND (fork = false) AND (tag IS present)
99

1010
jobs:
1111
include:
1212
- stage: Test
13-
install: pip install tox
14-
script: tox --recreate
13+
python: 2.7
14+
env: TOXENV=py27-unix
15+
- python: 3.6
16+
env: TOXENV=py36-unix
17+
- python: 3.7
18+
env: TOXENV=py37-unix
19+
20+
- stage: Deploy
21+
install: true
22+
script: skip
1523
deploy:
1624
provider: pypi
1725
user: jtpereyda
@@ -23,3 +31,7 @@ jobs:
2331
tags: true
2432
repo: jtpereyda/boofuzz
2533
branch: master
34+
35+
before_install: sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers
36+
install: pip install tox
37+
script: tox --skip-missing-interpreters false

CONTRIBUTING.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,17 @@ See installation instructions for details on installing boofuzz from source with
1818
Pull Request Checklist
1919
----------------------
2020

21-
1. Verify tests pass: ::
21+
1. Install python version 2.7.9+ **and** 3.6+
22+
23+
2. Verify tests pass: ::
2224

2325
tox
2426

25-
2. If you have PyCharm, use it to see if your changes introduce any new static analysis warnings.
27+
3. If you have PyCharm, use it to see if your changes introduce any new static analysis warnings.
2628

27-
3. Modify CHANGELOG.rst to say what you changed.
29+
4. Modify CHANGELOG.rst to say what you changed.
2830

29-
4. If adding a new module, consider adding it to the Sphinx docs (see ``docs`` folder).
31+
5. If adding a new module, consider adding it to the Sphinx docs (see ``docs`` folder).
3032

3133
Maintainers
3234
===========

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[tox]
2+
skip_missing_interpreters = True
23
envlist =
34
py27-{unix,windows}
45
py36-{unix,windows}
6+
py37-{unix,windows}
57

68
[testenv]
79
whitelist_externals =

0 commit comments

Comments
 (0)