Skip to content

Commit

Permalink
travis: osx+win tests, sperate docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Apr 29, 2020
1 parent 6e0871c commit da62d59
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 6 deletions.
53 changes: 50 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,67 @@ language: python
os: linux
jobs:
include:
# docs build
- name: Docs (py36)
python: 3.6
install: make init
script: make docs
after_script: []
# linux
- python: 2.7
- python: 3.4
- python: 3.5
- python: 3.6
- python: 3.7
- python: 3.8
os: linux
# OSX
- name: OSX Python 2.7
os: osx
language: shell
before_install:
- cp -fv `which python2` `which python` || true
- cp -fv `which pip2` `which pip` || true
- pip install --upgrade pip
after_script: []
- name: OSX Python 3.7
os: osx
language: shell
before_install:
- cp -fv `which python3` `which python` || true
- cp -fv `which pip3` `which pip` || true
- pip install --upgrade pip
after_script: []
# Windows
- name: Win Python 3.6
language: shell
os: windows
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
before_install:
- choco install python --version 3.6.8
- python -m pip install --upgrade pip
after_script: []
- name: Win Python 3.7
language: shell
os: windows
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
before_install:
- choco install python --version 3.7.4
- python -m pip install --upgrade pip
after_script: []
- name: Win Python 3.8
language: shell
os: windows
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
before_install:
- choco install python --version 3.8.2
- python -m pip install --upgrade pip
after_script: []
install:
- pip install -r requirements.txt
- pip install coveralls
- pip install scrutinizer-ocular
script:
- make test
- make docs
- PYTHONHASHSEED=0 pytest --cov=steam tests
after_script:
- coveralls
- ocular
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ export HELPBODY
help:
@echo "$$HELPBODY"

init:
init: init_docs
pip install -r requirements.txt

init_docs:
pip install sphinx==1.8.5 sphinx_rtd_theme

test:
coverage erase
PYTHONHASHSEED=0 pytest --cov=steam tests
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ pytest-cov==2.5.1
mock==1.3.0
PyYAML==5.1
vcrpy==2.0.1
sphinx==1.8.5
sphinx_rtd_theme
cachetools>=3.0.0

0 comments on commit da62d59

Please sign in to comment.