Skip to content

Commit

Permalink
Merge pull request #275 from SR4ven/python_ci
Browse files Browse the repository at this point in the history
Run tests against multiple python versions
  • Loading branch information
jtpereyda authored May 22, 2019
2 parents 6be1bc7 + 50a0e15 commit e17cb35
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
22 changes: 17 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
language: python
dist: xenial
sudo: required

before_install: sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers
language: python

stages:
- Test
- name: Deploy
if: (repo = jtpereyda/boofuzz) AND (fork = false) AND (tag IS present)

jobs:
include:
- stage: Test
install: pip install tox
script: tox --recreate
python: 2.7
env: TOXENV=py27-unix
- python: 3.6
env: TOXENV=py36-unix
- python: 3.7
env: TOXENV=py37-unix

- stage: Deploy
install: true
script: skip
deploy:
provider: pypi
user: jtpereyda
Expand All @@ -23,3 +31,7 @@ jobs:
tags: true
repo: jtpereyda/boofuzz
branch: master

before_install: sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers
install: pip install tox
script: tox --skip-missing-interpreters false
10 changes: 6 additions & 4 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ See installation instructions for details on installing boofuzz from source with
Pull Request Checklist
----------------------

1. Verify tests pass: ::
1. Install python version 2.7.9+ **and** 3.6+

2. Verify tests pass: ::

tox

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

3. Modify CHANGELOG.rst to say what you changed.
4. Modify CHANGELOG.rst to say what you changed.

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

Maintainers
===========
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[tox]
skip_missing_interpreters = True
envlist =
py27-{unix,windows}
py36-{unix,windows}
py37-{unix,windows}

[testenv]
whitelist_externals =
Expand Down

0 comments on commit e17cb35

Please sign in to comment.