-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from LSSTDESC/u/EiffL/pypi
Updates the travis ci encryption and adds documentation for PyPi deployement
- Loading branch information
Showing
3 changed files
with
76 additions
and
77 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 |
---|---|---|
@@ -1,82 +1,49 @@ | ||
language: python | ||
|
||
# Caching all the depencencies so that they don't have to be redownloaded and | ||
# compiled everytime | ||
cache: | ||
directories: | ||
- $TRAVIS_BUILD_DIR/build/GSL/src | ||
- $TRAVIS_BUILD_DIR/build/FFTW/src | ||
- $TRAVIS_BUILD_DIR/build/SWIG/src | ||
- $TRAVIS_BUILD_DIR/build/CLASS/src | ||
- $TRAVIS_BUILD_DIR/build/ANGPOW/src | ||
- $HOME/miniconda | ||
|
||
# Definition of python build matrix for osx comes from: | ||
# https://docs.travis-ci.com/user/multi-os/#Python-example-(unsupported-languages) | ||
- "$TRAVIS_BUILD_DIR/build/GSL/src" | ||
- "$TRAVIS_BUILD_DIR/build/FFTW/src" | ||
- "$TRAVIS_BUILD_DIR/build/SWIG/src" | ||
- "$TRAVIS_BUILD_DIR/build/CLASS/src" | ||
- "$TRAVIS_BUILD_DIR/build/ANGPOW/src" | ||
- "$HOME/miniconda" | ||
matrix: | ||
include: | ||
- os: linux | ||
python: 2.7 | ||
sudo: required | ||
env: TOXENV=py27 | ||
- os: linux | ||
sudo: required | ||
python: 3.6 | ||
env: TOXENV=py36 | ||
- os: osx | ||
language: generic | ||
env: TOXENV=py27 | ||
- os: osx | ||
language: generic | ||
env: TOXENV=py36 | ||
|
||
#addons: | ||
# apt: | ||
# packages: | ||
# - texlive-latex-recommended | ||
# - texlive-latex-extra | ||
# - texlive-fonts-recommended | ||
# - texlive-fonts-extra | ||
# - dvipng | ||
|
||
include: | ||
- os: linux | ||
python: 2.7 | ||
sudo: required | ||
env: TOXENV=py27 | ||
- os: linux | ||
sudo: required | ||
python: 3.6 | ||
env: TOXENV=py36 | ||
- os: osx | ||
language: generic | ||
env: TOXENV=py27 | ||
- os: osx | ||
language: generic | ||
env: TOXENV=py36 | ||
install: | ||
- ./.travis/install.sh | ||
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then source $HOME/miniconda/bin/activate; fi | ||
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then hash -r ; fi | ||
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then source activate test-environment ; fi | ||
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | ||
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig | ||
- cmake --version | ||
- python --version | ||
|
||
- "./.travis/install.sh" | ||
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then source $HOME/miniconda/bin/activate; fi | ||
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then hash -r ; fi | ||
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then source activate test-environment ; fi | ||
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib | ||
- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig | ||
- cmake --version | ||
- python --version | ||
script: | ||
# First, building and testing the python module | ||
- python setup.py build | ||
- nosetests tests/run_tests.py --all --debug --detailed-errors --verbose --process-restartworker --with-coverage --cover-package=pyccl | ||
# Second, building and testing the C module | ||
- sudo make -Cbuild install | ||
- check_ccl | ||
|
||
- python setup.py build | ||
- nosetests tests/run_tests.py --all --debug --detailed-errors --verbose --process-restartworker --with-coverage --cover-package=pyccl | ||
- sudo make -Cbuild install | ||
- check_ccl | ||
after_success: | ||
- coveralls | ||
|
||
- coveralls | ||
deploy: | ||
provider: pypi | ||
user: desc-ccl | ||
password: | ||
secure: 3IJWS9UggkSS5TGiE9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C1IYvkS1H6Od4EoowJCIDBz3NmDjiuGpzCcenRmaxFQJnbwf/H44pedDLkB0c+EnYxfh2U7LJj7ztVmeFS8AV3P/E3aYx0StP/LnPnzvWDBIhStdZSMAX3K1RZBSjvu5nmTbk2w6TMI6ihlKfAmjyTwEOH7KcZtdv/o7A5VbBiz6PGehAJ6MrWLKtkiLVO1K2AeKH/AZ2Bknh8CUyLBpQ4JYg5URHvGa7wvnM4rPVh1dU/LvJrbaVXqlZp4gNVW0wrzVakfu4Q6Qng= | ||
on: | ||
tags: true | ||
branch: master | ||
|
||
# Check why the note creation process crashes | ||
# - make -C doc/0000-ccl_note | ||
#after_success: | ||
# if [[ -n "$GITHUB_API_KEY" ]; then | ||
# git checkout --orphan pdf | ||
# git rm -rf . | ||
# cp doc/0000-ccl_note/main.pdf 0000-ccl_note.pdf | ||
# git add -f 0000-ccl_note.pdf | ||
# git -c user.name='travis' -c user.email='travis' commit -m init | ||
# git push -q -f https://drphilmarshall:$GITHUB_API_KEY@github.com/DarkEnergyScienceCollaboration/CCL pdf | ||
# 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