Skip to content

Commit

Permalink
Merge pull request #25 from iamdefinitelyahuman/travis-py38
Browse files Browse the repository at this point in the history
Updates to Travis per Python 3.8
  • Loading branch information
iamdefinitelyahuman committed Oct 20, 2019
2 parents e8232de + f6f3195 commit 7e6e96d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 16 deletions.
44 changes: 29 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
# Based on https://github.com/cclauss/Travis-CI-Python-on-three-OSes
matrix:
include:
- name: "Python 3.7.4 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
install:
- choco install python --version=3.7.4
- python -m pip install --upgrade pip
- pip3 install -r requirements-dev.txt
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
script: python -m pytest tests --cov=solcx
after_success: python -m coveralls
- name: "Python 3.8.0 on Xenial Linux"
language: python
python: 3.8
dist: xenial
sudo: true
install:
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
- sudo apt-get install -y solc
- pip install -r requirements-dev.txt
script: python -m pytest tests --cov=solcx
after_success: python -m coveralls
- name: "Python 3.7.1 on Xenial Linux"
language: python
python: 3.7 # this works for Linux but is ignored on macOS or Windows
dist: xenial # required for Python >= 3.7
language: python
python: 3.7
dist: xenial
sudo: true
install:
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
- sudo apt-get install -y solc
- pip install -r requirements-dev.txt
- pip install flake8
script: flake8 solcx/ tests/ --max-line-length=100
script:
- flake8 solcx/ tests/ --max-line-length=100
- python -m pytest tests --cov=solcx
after_success: python -m coveralls
- name: "Python 3.6.8 on Xenial Linux"
language: python
python: 3.6
Expand All @@ -25,17 +50,6 @@ matrix:
- pip install -r requirements-dev.txt
script: python -m pytest tests --cov=solcx
after_success: python -m coveralls
- name: "Python 3.7.3 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
# python: 3.7 # 'python:' is ignored on Travis CI Windows
install:
- choco install python # this install takes at least 1 min 30 sec
- python -m pip install --upgrade pip
- pip3 install -r requirements-dev.txt
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
script: python -m pytest tests --cov=solcx
after_success: python -m coveralls

env:
global: COVERALLS_PARALLEL=true
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8'
],
)

0 comments on commit 7e6e96d

Please sign in to comment.