-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
64 lines (58 loc) · 1.87 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: python
dist: xenial
matrix:
fast_finish: true
include:
- os: linux
python: 3.5
- os: linux
python: 3.6
- os: linux
python: 3.7
- os: linux
python: nightly
- os: osx
osx_image: xcode10.1
language: generic
env: PYTHON=3.5.6
- os: osx
osx_image: xcode10.1
language: generic
env: PYTHON=3.6.7
- os: osx
osx_image: xcode10.1
language: generic
env: PYTHON=3.7.1
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
# Per the `pyenv homebrew recommendations <https://github.com/yyuu/pyenv/wiki#suggested-build-environment>`_.
brew install openssl readline
# See https://docs.travis-ci.com/user/osx-ci-environment/#A-note-on-upgrading-packages.
# I didn't do this above because it works and I'm lazy.
brew outdated pyenv || brew upgrade pyenv
# virtualenv doesn't work without pyenv knowledge. venv in Python 3.3
# doesn't provide Pip by default. So, use `pyenv-virtualenv <https://github.com/yyuu/pyenv-virtualenv/blob/master/README.md>`_.
brew install pyenv-virtualenv
pyenv install $PYTHON
# I would expect something like ``pyenv init; pyenv local $PYTHON`` or
# ``pyenv shell $PYTHON`` would work, but ``pyenv init`` doesn't seem to
# modify the Bash environment. ??? So, I hand-set the variables instead.
export PYENV_VERSION=$PYTHON
export PATH="/Users/travis/.pyenv/shims:${PATH}"
pyenv virtualenv venv
source /Users/travis/.pyenv/versions/3.5.6/envs/venv/bin/activate
# A manual check that the correct version of Python is running.
python --version
fi
install:
- pip install .
- pip install .[dev]
script:
- py.test --cov pyffi --cov-report=term tests
- coverage report --show-missing
after_success:
- coveralls
- python setup.py sdist bdist_wheel
notifications:
email: false