-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
32 lines (32 loc) · 966 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sudo: false
language: python
matrix:
include:
- os: linux
python: 3.6
- os: linux
python: 3.7
- os: osx
language: generic
env: PYENV_VERSION=3.6.8
- os: osx
language: generic
env: PYENV_VERSION=3.7.4
install:
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then brew update ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then brew outdated pyenv || brew upgrade pyenv ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then pyenv install $PYENV_VERSION ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then ~/.pyenv/versions/$PYENV_VERSION/bin/python -m venv .venv ; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ] ; then source .venv/bin/activate ; fi
- python --version
- python -m pip install -U pip
- python -m pip install -U pipenv
- pipenv install --dev
- pip install coveralls
before_script:
- python -m coverage erase
script:
- python --version
- python -m pytest -v -s --cov
after_success:
- python -m coveralls