Skip to content

Commit

Permalink
Cythonize
Browse files Browse the repository at this point in the history
  • Loading branch information
sublee committed Jul 21, 2017
2 parents 9b2b93d + 3c624d2 commit 167c74a
Show file tree
Hide file tree
Showing 16 changed files with 1,457 additions and 1,067 deletions.
33 changes: 32 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,48 @@ python:
- 3.5
- 3.6
- pypy
- pypy3
# Fail with an abort: https://bitbucket.org/pypy/pypy/issues/2571
# - pypy3

before_install: # Use PyPy-5.8.0.
- cd "$HOME"
- |
if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then
deactivate
wget https://bitbucket.org/pypy/pypy/downloads/pypy2-v5.8.0-linux64.tar.bz2
tar -jxvf pypy2-v5.8.0-linux64.tar.bz2
pushd pypy2-v5.8.0-linux64/bin
export PATH="$PWD:$PATH"
ln -s pypy python
./pypy -m ensurepip
pushd
fi
- |
if [[ $TRAVIS_PYTHON_VERSION == 'pypy3' ]]; then
deactivate
wget https://bitbucket.org/pypy/pypy/downloads/pypy3-v5.8.0-linux64.tar.bz2
tar -jxvf pypy3-v5.8.0-linux64.tar.bz2
pushd pypy3-v5.8.0-linux64/bin
export PATH="$PWD:$PATH"
ln -s pypy3 python
./pypy3 -m ensurepip
pushd
fi
- cd "$TRAVIS_BUILD_DIR"

install:
- pip install cython
- pip install -e .
- pip install coveralls
- pip install pytest-benchmark

script:
- coverage run --source=gauge setup.py test
- |
pytest gaugebenchmark.py \
--benchmark-group-by=func \
--benchmark-sort=mean \
--benchmark-min-time=0.1
after_success:
- coveralls
Loading

0 comments on commit 167c74a

Please sign in to comment.