-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bdacf1
commit 9591ee2
Showing
2 changed files
with
45 additions
and
22 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
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,26 +1,47 @@ | ||
matrix: | ||
include: | ||
- language: generic | ||
os: osx | ||
before_install: | ||
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh | ||
- bash Miniconda3-latest-MacOSX-x86_64.sh -b -p $HOME/miniconda | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- source $HOME/miniconda/bin/activate | ||
- conda update --yes conda | ||
- conda create -q --yes -n test-environment python=3.6 | ||
- source activate test-environment | ||
- language: python | ||
os: linux | ||
python: 3.6 | ||
after_success: | ||
- pip install coveralls | ||
- coveralls | ||
install: | ||
- python setup.py develop | ||
script: | ||
- python tests.py | ||
fast_finish: true | ||
env: | ||
matrix: | ||
- PYTHON_VERSION=3.5 | ||
- PYTHON_VERSION=3.6 | ||
language: generic # since we use miniconda everywhere | ||
os: | ||
- linux | ||
- osx | ||
## only launch CI on those branches | ||
branches: | ||
only: | ||
- master | ||
- develop | ||
- test_deploy | ||
|
||
# we use python from miniconda in order to be able to create virtual environments easily | ||
before_install: | ||
- echo "$TRAVIS_OS_NAME" | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then | ||
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; | ||
fi | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then | ||
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; | ||
fi | ||
- bash miniconda.sh -b -p $HOME/miniconda; | ||
- export PATH="$HOME/miniconda/bin:$PATH" | ||
- source $HOME/miniconda/bin/activate | ||
- conda update --yes conda | ||
- conda create -q --yes -n test-environment python=$PYTHON_VERSION | ||
- source activate test-environment | ||
# install auxiclean package | ||
install: | ||
- python setup.py develop | ||
# execute tests | ||
script: | ||
- python tests.py | ||
after_success: | ||
# report coverage in coveralls only for linux build with python 3.6 | ||
- if ([[ "$PYTHON_VERSION" == "3.6" ]] && | ||
[[ "$TRAVIS_OS_NAME" == "linux" ]]); then | ||
pip install coveralls; | ||
fi | ||
- if ([[ "$PYTHON_VERSION" == "3.6" ]] && | ||
[[ "$TRAVIS_OS_NAME" == "linux" ]]); then | ||
coveralls; | ||
fi |