Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert hamcrest to a single source base
* finalizes py25 deprecation * [TravisCI] fixups for single-source, remove Jython and Python 2.5 * Enable coveralls
- Loading branch information
Showing
30 changed files
with
137 additions
and
118 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
[run] | |||
source = hamcrest |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,52 +1,40 @@ | |||
language: python | language: python | ||
|
|
||
python: | python: | ||
- 2.5 | - 2.6 | ||
- 2.6 | - 2.7 | ||
- 2.7 | - 3.2 | ||
- 3.2 | - 3.3 | ||
- 3.3 | - pypy | ||
- pypy | |||
|
|
||
env: | env: | ||
matrix: | matrix: | ||
- NUMPY="true" | - NUMPY="true" | ||
- NUMPY="false" | - NUMPY="false" | ||
|
|
||
matrix: | matrix: | ||
exclude: | exclude: | ||
- python: pypy | - python: pypy | ||
env: NUMPY="true" | env: NUMPY="true" | ||
- python: jython2.5 | |||
env: NUMPY="true" | |||
|
|||
allow_failures: | |||
- python: jython2.5 | |||
env: NUMPY="false" | |||
|
|
||
before_install: | before_install: | ||
- export PYTHON_EXE=python | - export PYTHON_EXE=python | ||
- export JYTHON_URL='http://downloads.sourceforge.net/project/jython/jython/2.5.2/jython_installer-2.5.2.jar?r=http%3A%2F%2Fwww.jython.org%2Fdownloads.html&ts=1338089844&use_mirror=iweb' | |||
- export EASY_SETUP_URL='http://peak.telecommunity.com/dist/ez_setup.py' | - export EASY_SETUP_URL='http://peak.telecommunity.com/dist/ez_setup.py' | ||
- if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then wget $JYTHON_URL -O jython_installer.jar; java -jar jython_installer.jar -s -d $HOME/jython | tail -n 2; export PATH=$HOME/jython:$HOME/jython/bin:$PATH; jython -c print; export PYTHON_EXE=jython; fi | |||
- if [[ $TRAVIS_PYTHON_VERSION == 'jython2.5' ]]; then wget $EASY_SETUP_URL -O ez_setup.py; jython ez_setup.py; hash -r; easy_install pip; fi | |||
|
|
||
install: | install: | ||
- if [[ $TRAVIS_PYTHON_VERSION == '2.5' ]]; then pip install --use-mirrors unittest2; fi | - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors unittest2; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install --use-mirrors unittest2; fi | - if [[ $NUMPY == "true" ]]; then pip install numpy; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == "jython2.5" ]]; then pip install nose unittest2; fi | - pip install --use-mirrors coveralls | ||
- if [[ $NUMPY == "true" ]]; then pip install numpy; fi | - pip install --use-mirrors 'pytest>=2.3.5' 'pytest-cov>=1.6' | ||
- pip install --use-mirrors 'pytest>=2.3.5' 'six' | - pip install --use-mirrors -r requirements.txt | ||
- "/usr/bin/yes | $PYTHON_EXE setup.py install 2>&1 | tail -n 2" | |||
# - pip install . --use-mirrors | |||
|
|
||
before_script: | before_script: | ||
- if [[ $TRAVIS_PYTHON_VERSION == "jython2.5" ]]; then jython -c "print ''"; fi | |||
- if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then export PYTHONHASHSEED=4; fi | - if [[ $TRAVIS_PYTHON_VERSION == "3.3" ]]; then export PYTHONHASHSEED=4; fi | ||
- if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then export PYTHONHASHSEED=8; fi | |||
|
|
||
script: | script: | ||
# Must cd somewhere else so python3 doesn't get confused and run | - $PYTHON_EXE setup.py develop | ||
# the python2 code from the current directory instead of the installed | - py.test -v --cov hamcrest | ||
# 2to3 version. |
|
||
- $PYTHON_EXE setup.py build | after_success: | ||
- py.test -v | - coveralls |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
six>=1.4 |
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
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
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
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
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
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
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.