-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLD: General updates to the repository #693
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
05577ab
BLD: General updates to the repository
ElDeveloper 2b05bf5
Merge branch 'new-api' of git://github.com/biocore/emperor into moder…
ElDeveloper 307944b
Add 3.7
ElDeveloper 11f27ff
Modernize test running and coverage collection
ElDeveloper ced1664
Add ability to run 3.7
ElDeveloper a69d27f
Add phantom.js as a conda dependency 👻
ElDeveloper 50bf338
Merge branch 'new-api' of git://github.com/biocore/emperor into moder…
ElDeveloper 79d8e95
Another stab at python 3.7
ElDeveloper a726919
Update travis CI
ElDeveloper b1ff2ed
Update scikit-learn through conda
ElDeveloper f7132d2
Install scikit-learn from conda-forge
ElDeveloper 501208d
ENH: Install from pip with no wheel
ElDeveloper c0c0bf7
STY: Remove trailing space in travis
ElDeveloper b537a1a
Add descriptor for Python 3.4
ElDeveloper 40390c8
ENH: Add cython
ElDeveloper 4a17ab7
Pin down scikit-learn
ElDeveloper 6de0963
Re-add testing for python 3.4
ElDeveloper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,57 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.5" | ||
- "3.6" | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
# also includes 3.7 (see below) | ||
env: | ||
- NUMPY_VERSION="" WITH_COVERAGE=1 # environment to test with the latest version of NumPy | ||
- NUMPY_VERSION="" # environment to test with the latest version of NumPy | ||
- NUMPY_VERSION="<1.13" | ||
|
||
matrix: | ||
# support for python 3.7 is rather awkward via Travis CI | ||
# https://github.com/travis-ci/travis-ci/issues/9815 | ||
include: | ||
- python: 3.7 | ||
dist: xenial | ||
sudo: true | ||
env: NUMPY_VERSION="" | ||
- python: 3.7 | ||
dist: xenial | ||
sudo: true | ||
env: NUMPY_VERSION="<1.13" | ||
exclude: | ||
# for older python versions only test the latest versions of NumPy | ||
- python: 2.7 | ||
env: NUMPY_VERSION="<1.13" | ||
- python: 3.4 | ||
env: NUMPY_VERSION="<1.13" | ||
- python: 3.5 | ||
env: NUMPY_VERSION="<1.13" | ||
|
||
before_install: | ||
- phantomjs --version | ||
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh | ||
- chmod +x miniconda.sh | ||
- wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh && chmod +x miniconda.sh | ||
- ./miniconda.sh -b | ||
- export PATH=/home/travis/miniconda2/bin:$PATH | ||
# Update conda itself | ||
- conda update --yes conda | ||
|
||
install: | ||
- conda create --yes -n env_name python=$TRAVIS_PYTHON_VERSION pip numpy${NUMPY_VERSION} 'scipy>=0.17.0' matplotlib pandas nose flake8 pep8 jupyter | ||
- source activate env_name | ||
- pip install https://github.com/google/closure-linter/archive/master.zip | ||
- pip install 'sphinx<1.6' sphinx-bootstrap-theme coverage coveralls | ||
# install lockfile before to prevent a failure in travis | ||
- pip install 'lockfile>=0.10.2' | ||
- conda create --yes -n travis python=$TRAVIS_PYTHON_VERSION pip numpy${NUMPY_VERSION} 'scipy>=0.17.0' matplotlib pandas flake8 pep8 jupyter coverage cython | ||
- source activate travis | ||
- conda install -c conda-forge phantomjs --yes | ||
# scikit-learn has to be pinned down due to a bug: https://github.com/scikit-learn/scikit-learn/issues/12671 | ||
- pip install https://github.com/google/closure-linter/archive/master.zip 'sphinx<1.6' sphinx-bootstrap-theme coveralls 'scikit-learn==0.19.2' --no-binary scikit-learn | ||
- pip install -e '.[all]' --verbose | ||
- npm install -g jsdoc | ||
|
||
script: | ||
- flake8 emperor/*.py tests/*.py scripts/*.py setup.py | ||
# we can only run gjslint in a python 2.7.x environment | ||
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then gjslint --custom_jsdoc_tags 'module,function,constructs,alias,default' 'emperor/support_files/js/*.js' 'tests/javascript_tests/*.js'; fi | ||
# execute the full test suite | ||
- python tests/all_tests.py | ||
# we just check coverage in the latest version of NumPy | ||
- if [ ${WITH_COVERAGE} ]; then nosetests emperor --with-coverage --cover-package=emperor --cover-inclusive tests; fi | ||
- coverage run tests/all_tests.py; coverage report | ||
- make -C doc html | ||
after_success: | ||
- 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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why this is only tested against numpy<1.13? That version of numpy is about 2 years out of date ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now it is mostly because we have compatibility and we don't really use any new features. Also, Emperor is compatible with this and with much newer versions, hence the other builds with
NUMPY_VERSION=""
.