Skip to content

Commit

Permalink
Add Travis Support
Browse files Browse the repository at this point in the history
  • Loading branch information
dstufft committed Sep 12, 2016
1 parent a27099b commit 2414cad
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
@@ -0,0 +1,28 @@
language: python

sudo: false

cache:
directories:
- $HOME/.cache/pip

matrix:
include:
- python: 2.6
env: TOXENV=py26
- python: 2.7
env: TOXENV=py27
- python: 3.3
env: TOXENV=py33
- python: 3.4
env: TOXENV=py34
- python: 3.5
env: TOXENV=py35
- python: pypy
env: TOXENV=pypy PYPY_VERSION=5.1

install:
- ./.travis/install.sh

script:
- tox
17 changes: 17 additions & 0 deletions .travis/install.sh
@@ -0,0 +1,17 @@
# temporary pyenv installation to get latest pypy until the travis
# container infra is upgraded
if [[ "${TOXENV}" = pypy* ]]; then
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install "pypy-$PYPY_VERSION"
pyenv global "pypy-$PYPY_VERSION"

pip install --upgrade tox

pyenv rehash
fi


pip install --upgrade tox

0 comments on commit 2414cad

Please sign in to comment.