-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #479
- Loading branch information
Showing
4 changed files
with
125 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,118 @@ | ||
# Enables support for a docker container-based build | ||
# which should provide faster startup times and beefier | ||
# "machines". | ||
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ | ||
sudo: false | ||
dist: trusty | ||
|
||
# TRAVIS_PYTHON_VERSION | ||
|
||
cache: | ||
directories: | ||
- .pyenv_test | ||
|
||
language: python | ||
|
||
matrix: | ||
include: | ||
- python: "2.7" | ||
env: TOXENV=style | ||
|
||
- python: "2.7" | ||
env: TOXENV=isort-check | ||
|
||
- python: "2.7" | ||
env: TOXENV=py27 | ||
|
||
- python: "2.7" | ||
env: TOXENV=py27-subprocess | ||
|
||
- python: "2.7" | ||
env: TOXENV=py27-requests | ||
|
||
- python: "2.7" | ||
env: TOXENV=py27-requests-cachecontrol | ||
|
||
- python: "3.4" | ||
env: TOXENV=py34 | ||
|
||
- python: "3.5" | ||
env: TOXENV=py35 | ||
|
||
- python: "3.6" | ||
env: TOXENV=py36 | ||
|
||
- python: "3.6" | ||
env: TOXENV=py36-requests | ||
|
||
- python: "3.6" | ||
env: TOXENV=py36-requests-cachecontrol | ||
|
||
- python: "pypy" | ||
env: TOXENV=pypy | ||
|
||
- python: "2.7" | ||
env: TOXENV=py27-integration | ||
|
||
- python: "3.6" | ||
env: TOXENV=py36-integration | ||
|
||
- python: "pypy" | ||
env: TOXENV=pypy-integration | ||
x-linux-shard: &x-linux-shard | ||
os: linux | ||
sudo: false | ||
dist: trusty | ||
language: python | ||
cache: | ||
directories: | ||
- .pyenv_test | ||
|
||
x-osx-shard: &x-osx-shard | ||
os: osx | ||
language: generic | ||
cache: | ||
directories: | ||
- .pyenv_test | ||
- ${HOME}/.pyenvpex | ||
before_install: | | ||
export PYENV_ROOT="${HOME}/.pyenvpex" | ||
if [ ! -d "${PYENV_ROOT}" ]; then | ||
git clone https://github.com/pyenv/pyenv "${PYENV_ROOT}"; | ||
fi | ||
export PATH="${PYENV_ROOT}/bin:${PATH}" | ||
hash -r | ||
pyenv install --keep --skip-existing ${PYENV_VERSION} | ||
pyenv global ${PYENV_VERSION} | ||
install: | ||
- pip install -U tox "setuptools>=36" | ||
|
||
script: | ||
- ./scripts/ci.sh | ||
matrix: | ||
include: | ||
- <<: *x-linux-shard | ||
python: "2.7" | ||
script: ./scripts/ci.sh style | ||
|
||
- <<: *x-linux-shard | ||
python: "2.7" | ||
script: ./scripts/ci.sh isort-check | ||
|
||
- <<: *x-linux-shard | ||
python: "2.7" | ||
script: ./scripts/ci.sh py27 | ||
|
||
- <<: *x-linux-shard | ||
python: "2.7" | ||
script: ./scripts/ci.sh py27-subprocess | ||
|
||
- <<: *x-linux-shard | ||
python: "2.7" | ||
script: ./scripts/ci.sh py27-requests | ||
|
||
- <<: *x-linux-shard | ||
python: "2.7" | ||
script: ./scripts/ci.sh py27-requests-cachecontrol | ||
|
||
- <<: *x-linux-shard | ||
python: "3.4" | ||
script: ./scripts/ci.sh py34 | ||
|
||
- <<: *x-linux-shard | ||
python: "3.5" | ||
script: ./scripts/ci.sh py35 | ||
|
||
- <<: *x-linux-shard | ||
python: "3.6" | ||
script: ./scripts/ci.sh py36 | ||
|
||
- <<: *x-linux-shard | ||
python: "3.6" | ||
script: ./scripts/ci.sh py36-requests | ||
|
||
- <<: *x-linux-shard | ||
python: "3.6" | ||
script: ./scripts/ci.sh py36-requests-cachecontrol | ||
|
||
- <<: *x-linux-shard | ||
python: "pypy" | ||
script: ./scripts/ci.sh pypy | ||
|
||
- <<: *x-linux-shard | ||
python: "2.7" | ||
script: ./scripts/ci.sh py27-integration | ||
|
||
- <<: *x-linux-shard | ||
python: "3.6" | ||
script: ./scripts/ci.sh py36-integration | ||
|
||
- <<: *x-linux-shard | ||
python: "pypy" | ||
script: ./scripts/ci.sh pypy-integration | ||
|
||
- <<: *x-osx-shard | ||
name: TOXENV=py27-requests | ||
env: | ||
- PYENV_ROOT="${HOME}/.pyenvpex" PATH="${PYENV_ROOT}/shims:${PATH}" | ||
- PYENV_VERSION=2.7.15 | ||
script: ./scripts/ci.sh py27-requests | ||
|
||
- <<: *x-osx-shard | ||
name: TOXENV=py36-requests | ||
env: | ||
- PYENV_ROOT="${HOME}/.pyenvpex" PATH="${PYENV_ROOT}/shims:${PATH}" | ||
- PYENV_VERSION=3.6.5 | ||
script: ./scripts/ci.sh py36-requests | ||
|
||
- <<: *x-osx-shard | ||
name: TOXENV=py27-integration | ||
env: | ||
- PYENV_ROOT="${HOME}/.pyenvpex" PATH="${PYENV_ROOT}/shims:${PATH}" | ||
- PYENV_VERSION=2.7.15 | ||
script: ./scripts/ci.sh py27-integration | ||
|
||
- <<: *x-osx-shard | ||
name: TOXENV=py36-integration | ||
env: | ||
- PYENV_ROOT="${HOME}/.pyenvpex" PATH="${PYENV_ROOT}/shims:${PATH}" | ||
- PYENV_VERSION=3.6.5 | ||
script: ./scripts/ci.sh py36-integration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters