Skip to content

Commit

Permalink
chore: simplify travis setup, for now
Browse files Browse the repository at this point in the history
  • Loading branch information
engineervix committed Jul 6, 2021
1 parent d8b32ac commit 958aa6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 65 deletions.
67 changes: 3 additions & 64 deletions .travis.yml
@@ -1,72 +1,11 @@
# Config file for automatic testing at travis-ci.com

language: python
# ===== Linux ======
os: linux
dist: bionic
python:
- 3.6
- 3.7
- 3.8
- 3.9

jobs:
include:
# ======= OSX ========
# ----- changes in Travis images means this doesn't work for versions before 3.7.5 ---
# - name: "Python 3.6.5 on macOS 10.13"
# os: osx
# osx_image: xcode9.4 # Python 3.6.5 running on macOS 10.13
# language: shell # 'language: python' is an error on Travis CI macOS
# script: tox
# after_success: python3 -m codecov
- name: "Python 3.7.9 on macOS 10.14"
os: osx
osx_image: xcode10.2 # Python 3.7.5 running on macOS 10.14.3
language: shell # 'language: python' is an error on Travis CI macOS
script: tox
after_success: python3 -m codecov
- name: "Python 3.8.0 on macOS 10.14"
os: osx
osx_image: xcode11.3 # Python 3.8.0 running on macOS 10.14.6
language: shell # 'language: python' is an error on Travis CI macOS
script: tox
after_success: python3 -m codecov
- name: "Python 3.9.0 on macOS 10.14"
os: osx
osx_image: xcode12.4 # Python 3.9.0 running on macOS 11.2.1
language: shell # 'language: python' is an error on Travis CI macOS
script: tox
after_success: python3 -m codecov
# ====== WINDOWS =========
- name: "Python 3.6.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.6.8
- python --version
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
- name: "Python 3.7.9 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.7.9
- python --version
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
- name: "Python 3.8.8 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.8.8
- python --version
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
- name: "Python 3.9.2 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.9.2
- python --version
env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
- 3.8
- 3.7
- 3.6

# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -52,7 +52,7 @@ If you're looking for powerful, _general purpose badge generation tools_ for you

- automatically generates your project's coverage badge using the [shields.io](https://shields.io/) service, and then updates your project's README with the newly generated badge
- simple CLI tool (`readme-cov`) with helpful messages
- comprehensively tested on python 3.6 to 3.9 on GNU/Linux, Mac OS X and Windows, with coverage ≥ 84%
- tested on python 3.6 to 3.9 with coverage ≥ 84%
- free software: BSD-3-Clause license
- generates different colours depending on the coverage percentage. Optionally generate plain colour (green) regardless of percentage
- minimal external dependencies – this tool only has 2 external dependencies; [Coverage.py](https://github.com/nedbat/coveragepy) (obviously!) and [colorama](https://github.com/tartley/colorama) (for cross-platform coloured terminal output)
Expand Down Expand Up @@ -157,6 +157,7 @@ Please give a ⭐️ if this project helped you!
## ✅ TODO

- [ ] Add a screenshot / demo in this README
- [ ] improve CI/CD to cater for GNU/Linux, Mac OS X and Windows
- [ ] Make the codebase fully typed
- [ ] Improve the Tests by [parametrizing](https://docs.pytest.org/en/stable/example/parametrize.html) fixtures and test functions
- [ ] Cater for both markdown and restructuredtext, and detect which is which if no extension given
Expand Down

0 comments on commit 958aa6d

Please sign in to comment.