-
Notifications
You must be signed in to change notification settings - Fork 13
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 #18 from HealthyPear/feature-Travis_CI
Added Travis CI configuration file
- Loading branch information
Showing
3 changed files
with
104 additions
and
47 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,49 @@ | ||
language: generic | ||
|
||
env: | ||
global: | ||
- PYTHONIOENCODING=UTF8 | ||
- MPLBACKEND=Agg | ||
|
||
matrix: | ||
include: | ||
- os: linux | ||
language: generic | ||
env: | ||
- PYTHON_VERSION=3.6 | ||
- CONDA=true | ||
|
||
- os: linux | ||
language: generic | ||
env: | ||
- PYTHON_VERSION=3.7 | ||
- CONDA=true | ||
|
||
before_install: | ||
|
||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
- bash miniconda.sh -b -p $HOME/miniconda | ||
- . $HOME/miniconda/etc/profile.d/conda.sh | ||
- hash -r | ||
- conda config --set always_yes yes --set changeps1 no | ||
- conda update -q conda # get latest conda version | ||
- conda info -a # Useful for debugging any issues with conda | ||
|
||
install: | ||
- conda env create -f protopipe_environment.yml | ||
- conda activate protopipe | ||
- pip install travis-sphinx codecov pytest-cov | ||
- python setup.py install | ||
|
||
script: | ||
# - pytest --cov=protopipe | ||
- travis-sphinx -v --outdir=docs/_build build -n --source=docs/ | ||
|
||
after_script: | ||
- if [[ "$CONDA" == "true" ]];then | ||
conda deactivate | ||
fi | ||
|
||
after_success: | ||
- travis-sphinx -v --outdir=docs/_build deploy | ||
- codecov |
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