Skip to content

Commit

Permalink
Merge pull request #19 from robertopreste/test_travis
Browse files Browse the repository at this point in the history
CI: Update Travis config
  • Loading branch information
robertopreste committed Mar 7, 2020
2 parents f472434 + 61ab494 commit 5657f75
Showing 1 changed file with 54 additions and 21 deletions.
75 changes: 54 additions & 21 deletions .travis.yml
@@ -1,27 +1,60 @@
# Config file for automatic testing at travis-ci.com

language: python
python:
- 3.7
- 3.6
matrix:
include:
- name: "Python 3.6.5 on macOS 10.13.6 (xcode 9.4)"
os: osx
osx_image: xcode9.4
language: shell
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -r requirements.txt
install: pip3 install -e .
script:
- pytest --cov=./
- flake8 allfreqs
- name: "Python 3.7.5 on macOS 10.14.4 (xcode 10.2)"
os: osx
osx_image: xcode10.2
language: shell
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -r requirements.txt
install: pip3 install -e .
script:
- pytest --cov=./
- flake8 allfreqs
- name: "Python 3.6.7 on Ubuntu 16.04"
os: linux
language: python
python: 3.6
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -r requirements.txt
install: pip3 install -e .
script:
- pytest --cov=./
- flake8 allfreqs
- name: "Python 3.7.1 on Ubuntu 16.04"
os: linux
language: python
python: 3.7
before_install:
- python3 --version
- pip3 install -U pip
- pip3 install -r requirements.txt
install: pip3 install -e .
script:
- pytest --cov=./
- flake8 allfreqs
after_success:
- codecov

# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis
#install: pip install -U tox-travis

# Command to run tests, e.g. python setup.py test
script: tox

# Assuming you have installed the travis-ci CLI tool, after you
# create the Github repo and add it to Travis, run the
# following command to finish PyPI deployment setup:
# $ travis encrypt --add deploy.password
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: robertopreste
password:
secure: PLEASE_REPLACE_ME
on:
tags: true
repo: robertopreste/allfreqs
python: 3.6
#script: tox

0 comments on commit 5657f75

Please sign in to comment.