Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using pure C instead of cython. Now the C extension is as fast as pos…
…sible.
- Loading branch information
Showing
14 changed files
with
530 additions
and
5,077 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,28 +1,87 @@ | ||
|
||
|
||
language: python | ||
|
||
#env: | ||
# - PYTHON=python PYSUF='' PYVER=2.7 PIPVER='' | ||
# - PYTHON=python3 PYSUF='3' PYVER=3.2 PIPVER='==7.1.2' | ||
# Default Python version is usually 2.7 | ||
python: 3.5 | ||
sudo: required | ||
dist: trusty | ||
#services: docker | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
|
||
matrix: | ||
exclude: | ||
# Exclude the default Python 3.5 build | ||
- python: 3.5 | ||
|
||
include: | ||
|
||
- os: linux | ||
python: 2.7 | ||
|
||
- os: linux | ||
python: 3.3 | ||
|
||
- os: linux | ||
python: 3.4 | ||
|
||
- os: linux | ||
python: 3.5 | ||
|
||
- os: linux | ||
python: nightly | ||
|
||
- os: linux | ||
python: pypy | ||
|
||
- os: linux | ||
python: pypy3 | ||
|
||
- os: osx | ||
language: objective-c | ||
python: 2.7 | ||
env: | ||
- PY=2 | ||
- PY_SUFFIX= | ||
|
||
- os: osx | ||
language: objective-c | ||
python: 3.5 | ||
env: | ||
- PY=3 | ||
- PY_SUFFIX=3 | ||
|
||
python: | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
- "3.5-dev" | ||
- "pypy" | ||
|
||
before_install: | ||
- sudo apt-get update | ||
- sudo apt-get install python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dev || true | ||
# HOSTNAME | ||
- cat /etc/hosts # optionally check the content *before* | ||
- sudo hostname "$(hostname | cut -c1-63)" | ||
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts | ||
- sudo mv /tmp/hosts /etc/hosts | ||
- cat /etc/hosts # optionally check the content *after* | ||
|
||
# OSX | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$PY" == "3" ]]; then brew install python$PY_SUFFIX; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then virtualenv venv -p python$PY_SUFFIX; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source venv/bin/activate; fi | ||
|
||
# LINUX | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dev || true ; fi | ||
- pip install -U pip setuptools wheel | ||
- pip install -r requirement.txt | ||
|
||
|
||
install: | ||
- pip install -e . | ||
- pip install -ve . | ||
|
||
script: | ||
coverage run --source khayyam $(which nosetests) | ||
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then coverage run --source khayyam $(which nosetests) ; fi | ||
|
||
after_success: | ||
coveralls | ||
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.5" ]]; then coveralls ; fi |
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
Oops, something went wrong.