Skip to content

Commit

Permalink
Added Python 3.8 to CI (#8)
Browse files Browse the repository at this point in the history
* Update CI to get running with Python 3.8

* Add allow_failures on Python 3.8, aded max version dep of crypto for py26

* Fix version marker

* Added max version for idna on py26
  • Loading branch information
jborean93 authored Aug 18, 2019
1 parent d8eb00f commit a41eb33
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 17 deletions.
30 changes: 18 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,25 @@ sudo: required

language: python

python:
- 2.6
- 2.7
- 3.4
- 3.5
- 3.6

# Python 3.7 requires 16.04 (Xenial), this is a hack to get that specific
# distro running that version until I can swap the rest over officially
dist: xenial

matrix:
include:
- python: 2.6
dist: trusty
- python: 2.7
- python: 3.4
dist: trusty
- python: 3.5
dist: trusty
- python: 3.6
- python: 3.7
dist: xenial
- python: 3.8-dev

# 3.8 is still a beta and I'm running it to see if anything breaks but
# don't want it to stop the build
allow_failures:
- python: 3.8-dev

services:
- docker
Expand All @@ -30,14 +36,14 @@ env:
install:
- docker run -d -p $SMB_PORT:445 -v $(pwd)/build-scripts:/app -w /app -e SMB_USER=$SMB_USER -e SMB_PASSWORD=$SMB_PASSWORD -e SMB_SHARE=$SMB_SHARE centos:7 /bin/bash /app/setup_samba.sh;
- pip install --upgrade pip setuptools
- pip install .
- pip install -r requirements-test.txt
- pip install .
- pip install coveralls
# make sure the Samba service on the container is up and running
- python ./build-scripts/check_samba.py

script:
- py.test -v --instafail --pep8 --cov smbprotocol --cov-report term-missing
- py.test -v --pep8 --cov smbprotocol --cov-report term-missing

after_success:
- coveralls
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ init:
install:
- cmd: python -m pip install --upgrade pip
- cmd: pip install --upgrade setuptools
- cmd: pip install .
- cmd: pip install -r requirements-test.txt
- cmd: pip install .

build: off # Do not run MSBuild, build stuff at install step

test_script:
- cmd: py.test -v --instafail --pep8 --cov smbprotocol --cov-report term-missing
- cmd: py.test -v --pep8 --cov smbprotocol --cov-report term-missing
8 changes: 5 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
pytest<=3.2.5
cryptography<2.2; python_version<"2.7"
idna<2.8; python_version<"2.7"
pytest==3.2.5; python_version<"2.7"
pytest>=3.6; python_version>"2.7"
pytest-cov
pytest-pep8
pytest-instafail
pytest-pep8
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
universal = 1

[tool:pytest]
pep8maxlinelength = 119
pep8ignore = setup.py E501

[metadata]
Expand Down

0 comments on commit a41eb33

Please sign in to comment.