-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·42 lines (42 loc) · 1.15 KB
/
.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
33
34
35
36
37
38
39
40
41
42
sudo: false
language: python
matrix:
include:
- os: linux
python: 3.8
- os: linux
python: 3.9
- os: linux
python: 3.10
- os: linux
python: 3.11
- os: osx
language: generic
env: PYENV_VERSION=3.8.0
- os: osx
language: generic
env: PYENV_VERSION=3.9.0
- os: osx
language: generic
env: PYENV_VERSION=3.10.0
- os: osx
language: generic
env: PYENV_VERSION=3.11.0
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