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/kmuehlbauer/wradlib
- Loading branch information
Showing
5 changed files
with
110 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,5 @@ | ||
[run] | ||
source = wradlib | ||
omit = | ||
*/setup.py | ||
*/tests* |
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,38 @@ | ||
# run on container-based infrastructure | ||
sudo: false | ||
|
||
language: python | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- gfortran | ||
|
||
env: | ||
global: | ||
# wradlib-docs | ||
- secure: "IGK2D/g89w2J2bJomtPTL2UT6SXlyUV+QfoQZP9MCUDQZI3tRddL2M0YYIO5WegUhPDYuCaQDqZCc03tF+UedZgMhyCAsAQWY8Kgt5cC8EXdj4AEs0L5FHB0yuPkOJhJX2cGezKTMjqFfF7pFQWxYmEK3zFzz/8pVBPa7jPkRn2U0ZlWp3v+vO5WbTYgkFdnYSH6+yTnRbnLHmOTbPg62G75mkDU9/RCCZ4a4oKmz40RKIhroSFQtw8HK4UbwVLQsoE06/iL0Q8dbT0o63W1liXcwUbqoljIBHq2i8RVHB1GrtMFIzY40mgIHVOtlJuw6pg0bNaawTGp3wBIfAdk2sCeKLoX5bPsCewed8Bo+kkYdF4TT8mHJVwPHaKjZ0grhavcboHcgC6+ddUS+4TrS9ZKlFyd87EIhCnqdW4X3n665QM8foP7sB6B+hRYrQFneAoHpuif4ea3/wuk//J8Wd5HlVROkd/1Fxqika0KmDNUH5cH1cvIAa2D37MKCf3nKGe/sCBB/TZBkwcmXl1Q4JA+PWzuC6QSc6qWrKZGiqgvPJKKczto5j1hssUh0tBTO9FM5kue/33TvTq1Hkk1tPfl0e4VFmz3BvlLXKLTDpGF+cPn09irINoZJooA3andBjTynwWDYMbtXDQJ4YwCJXyS3N6yAAyaO8pGV23W3aQ=" | ||
|
||
matrix: | ||
include: | ||
- python: 2.7 | ||
env: | ||
- PYTHON_VERSION="2.7" | ||
- COVERALLS="true" | ||
- DOC_BUILD="true" | ||
- python: 3.4 | ||
env: | ||
- PYTHON_VERSION="3.4" | ||
- python: 3.5 | ||
env: | ||
- PYTHON_VERSION="3.5" | ||
|
||
install: source scripts/install.sh | ||
|
||
script: | ||
- export GDAL_DATA=/home/travis/miniconda2/envs/wradlib/share/gdal | ||
- xvfb-run coverage run --source wradlib testrunner.py -a | ||
|
||
after_success: | ||
- if [[ "$COVERALLS" == "true" ]]; then coveralls || echo "failed"; fi | ||
- if [[ "$DOC_BUILD" == "true" ]]; then cd $TRAVIS_BUILD_DIR; scripts/build_docs.sh; 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env bash | ||
# Adapted from the continuous_integration/build_docs.sh file from the pyart project | ||
# https://github.com/ARM-DOE/pyart/ | ||
set -e | ||
|
||
cd "$TRAVIS_BUILD_DIR" | ||
|
||
echo "Building Docs" | ||
|
||
#mv "$TRAVIS_BUILD_DIR"/doc /tmp | ||
sphinx-build -b html doc/source doc-build | ||
|
||
# upload to wradlib-docs repo if this is not a pull request and | ||
# secure token is available. | ||
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ $TRAVIS_SECURE_ENV_VARS == 'true' ]; then | ||
cd doc-build | ||
git config --global user.email "wradlib-docs@example.com" | ||
git config --global user.name "wradlib-docs" | ||
|
||
git init | ||
touch README | ||
git add README | ||
git commit -m "Initial commit" --allow-empty | ||
git branch gh-pages | ||
git checkout gh-pages | ||
touch .nojekyll | ||
git add --all . | ||
git commit -m "Version" --allow-empty | ||
git remote add origin https://$GH_TOKEN@github.com/wradlib/wradlib-docs.git &> /dev/null | ||
git push origin gh-pages -fq &> /dev/null | ||
fi | ||
|
||
exit 0 |
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,30 @@ | ||
#!/bin/bash | ||
|
||
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh \ | ||
-O miniconda.sh | ||
chmod +x miniconda.sh | ||
./miniconda.sh -b | ||
export PATH=/home/travis/miniconda2/bin:$PATH | ||
conda update --yes conda | ||
conda update --yes conda | ||
|
||
# Create a testenv with the correct Python version | ||
conda create -n wradlib --yes pip python=$PYTHON_VERSION | ||
source activate wradlib | ||
|
||
# Install wradlib dependencies | ||
conda install --yes numpy scipy matplotlib netcdf4 proj4 | ||
|
||
conda install --yes sphinx gdal numpydoc h5py geos | ||
ls -lart /home/travis/miniconda2/envs/wradlib/share/gdal | ||
conda install --yes sphinx_rtd_theme | ||
pip install sphinxcontrib-bibtex | ||
pip install xmltodict | ||
|
||
# install coverage modules | ||
pip install coverage | ||
if [[ "$COVERALLS" == "true" ]]; then | ||
pip install python-coveralls | ||
fi | ||
|
||
python setup.py install |
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