-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/vatlab/sos-python
- Loading branch information
Showing
3 changed files
with
77 additions
and
2 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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
dist: trusty | ||
group: edge | ||
os: | ||
- linux | ||
# travis does not support python on osx yet (https://github.com/travis-ci/travis-ci/issues/4729) | ||
language: python | ||
python: | ||
#- "3.3" test stops at installing spyder notebook etc | ||
#- "3.4" test fails for unknown reason (sh not found):w | ||
- "3.5" | ||
- "3.6" | ||
before_install: | ||
# Base SoS | ||
- sudo apt-get update | ||
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda | ||
- conda info -a | ||
|
||
# downgrade python if needed | ||
- conda create -n python_test python=$TRAVIS_PYTHON_VERSION anaconda | ||
- source activate python_test | ||
|
||
- pip install docker rq | ||
- pip install pyyaml psutil tqdm nose | ||
- pip install fasteners pygments networkx pydot pydotplus | ||
- pip install entrypoints jupyter coverage codacy-coverage pytest pytest-cov python-coveralls | ||
- conda install pandas numpy | ||
|
||
# SoS Notebook | ||
- pip install jedi notebook nbconvert nbformat pyyaml psutil tqdm scipy | ||
- pip install pygments ipython wand graphviz sos sos-bash | ||
|
||
# Python 2 | ||
- conda create -n ipykernel_py2 python=2 ipykernel | ||
- source activate ipykernel_py2 | ||
- python -m ipykernel install --user | ||
- source deactivate ipykernel_py2 | ||
- source activate python_test | ||
|
||
sudo: required | ||
install: "python setup.py install" | ||
before_script: | ||
- cd test | ||
script: | ||
- 'if [ $TRAVIS_PYTHON_VERSION == "3.6" ]; then | ||
pytest -x -v; | ||
else | ||
pytest -x -v --cov sos_python --cov-report=xml; | ||
fi' | ||
|
||
after_success: | ||
- 'if [ $TRAVIS_PYTHON_VERSION == "3.5" ]; then | ||
coverage combine; | ||
coveralls; | ||
fi' | ||
|
||
notifications: | ||
email: | ||
recipients: | ||
- [email protected] | ||
on_success: never | ||
on_failure: always | ||
|
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,2 +1,9 @@ | ||
[](https://badge.fury.io/py/sos-python) | ||
[](https://travis-ci.org/vatlab/sos-python) | ||
[](https://ci.appveyor.com/project/BoPeng/sos-python/branch/master) | ||
[](https://www.codacy.com/app/BoPeng/sos-python?utm_source=github.com&utm_medium=referral&utm_content=vatlab/sos-python&utm_campaign=Badge_Grade) | ||
[](https://coveralls.io/github/vatlab/sos-python) | ||
|
||
# sos-python | ||
SoS extension for Python2 and Python3 | ||
SoS extension for Python2 and Python3. Please refer to [SoS Homepage](http://vatlab.github.io/SoS/) for details. | ||
|
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