forked from untitaker/python-atomicwrites
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (30 loc) · 825 Bytes
/
.travis.yml
File metadata and controls
34 lines (30 loc) · 825 Bytes
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
sudo: false
os: linux
language: python
env:
- TOXENV_SUFFIX=test
- TOXENV_SUFFIX=stylecheck
matrix:
include:
- os: osx
language: generic
env: TOXENV_SUFFIX=test
python:
- "2.6"
- "2.7"
- "pypy"
- "3.3"
- "3.4"
install:
- # The OS X VM doesn't have any Python support at all
# See https://github.com/travis-ci/travis-ci/issues/2312
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update;
brew install python3;
virtualenv -p python3 $HOME/osx-py3;
. $HOME/osx-py3/bin/activate;
export TRAVIS_PYTHON_VERSION="$(python --version | cut -d ' ' -f 2 | cut -d . -f -2)";
fi
- pip install tox
script:
- tox -e $(echo py$TRAVIS_PYTHON_VERSION | tr -d . | sed -e 's/pypypy/pypy/')-$TOXENV_SUFFIX