forked from operator-framework/operator-courier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (36 loc) · 928 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
33
34
35
36
37
38
39
40
sudo: false
language: python
matrix:
include:
- dist: trusty
python: "3.6"
env: TOXENV=py36
after_success: coveralls
- dist: xenial
python: "3.7"
env: TOXENV=py37
after_success: coveralls
- os: osx
language: generic
env:
- PYTHON=3.7.0
- TOXENV=py37
- dist: xenial
python: "3.7"
env: TOXENV=flake8
# Installing Python on macOS for Travis CI: https://pythonhosted.org/CodeChat/.travis.yml.html
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install openssl readline
brew outdated pyenv || brew upgrade pyenv
brew install pyenv-virtualenv
pyenv install $PYTHON
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv-virtualenv venv
source venv/bin/activate
python --version
fi
install: pip install tox-travis coveralls
script: tox