diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9915308f --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# This file is generated by Cython +ext/_yaml.c + +# Tox and Build Artifacts +.tox/ +MANIFEST +build/ + +# Python runtime Artifacts +*.pyc diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f1bd1014 --- /dev/null +++ b/.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 diff --git a/.travis/install.sh b/.travis/install.sh new file mode 100755 index 00000000..270c733a --- /dev/null +++ b/.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 diff --git a/tox.ini b/tox.ini new file mode 100644 index 00000000..5a1ba14b --- /dev/null +++ b/tox.ini @@ -0,0 +1,8 @@ +[tox] +envlist = py26,py27,pypy,py33,py34,py35, + +[testenv] +deps = + Cython +commands = + python setup.py test