Permalink
Fetching contributors…
Cannot retrieve contributors at this time
61 lines (53 sloc) 2.41 KB
#sudo: false
# travis-ci.org build & test configuration
language: python
matrix:
include:
- python: 2.7
env: ROOT=6.04 PANDAS=0.23.3
- python: 2.7
env: ROOT=6.04 PANDAS=0.22
- python: 2.7
env: ROOT=None PANDAS=None
- python: 3.6
env: ROOT=6.05 PANDAS=0.23.3
- python: 3.6
env: ROOT=6.05 PANDAS=0.22
- python: 3.6
env: ROOT=None PANDAS=None
allow_failures:
install:
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then curl --silent http://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -o miniconda.sh; fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then wget -nv http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- 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
- conda config --add channels http://conda.anaconda.org/NLeSC
- conda config --set show_channel_urls yes
- conda create -q -n testenv python=${TRAVIS_PYTHON_VERSION} $([ "$ROOT" != "None" ] && echo "root=${ROOT}") numpy
- export CONDA_ENV_PATH=$HOME/miniconda/envs/testenv
- source activate testenv
- if [ "$PANDAS" != "None" ]; then pip install pandas=="${PANDAS}"; fi
- pip install -r requirements/test.txt
script:
- pytest --cov
after_success:
- coverage combine
- codecov
cache: apt
# branches:
# only:
# - v0.9.x
deploy:
provider: pypi
user: tai.sakuma
distributions: sdist bdist_wheel --universal
password:
secure: JWJx8WxSHbOVIuj7NFco9tFWE8iehj8tiTgwyML1jVkNzWhqbQIHAut28z5ECJfdj9u1AGT9XMWhVDA5T3znGGHK4k4uDQECwEX1hlkjx4Ji7zCvRCBCOH2qgxQS6/rCn+3AgjVy1Vi76KTk+GpxtTC9dy55e3Wkv+4DCfF9guycH/7Do9Hx3p+TGLcv7FXR3VeI4q/wq52YskmWEshhIsRg8OQ0+xx3erKK73V+W8/w1WcIo6g8BeSSgNMUeXPNgmrJrWHt55/j0CSO7oJkj4F9/JSiTx/rUHBB6NeUkFltqO/cb2FLR4X6GKyBfxdFBSAOMTSjkxn3GorS0daWQKMHyKUA8F0YfgdqcZm3QeaIYtRqKgirsedY+6yA3KYIINuSLc2yKgLpj5qnItgoUBBXICHYeEf9Y0+l2/BWTroQyXofjbqYPt5MiUx/GXGJ3Qqfl/KouBXn5UBtQgCM83u21kOEFKU+Cfp/HQOTOfrdIn/5EsrzJ4n9jRow7KtEdi5jlKFy0jCqsV0Lu7KjUF+zQ2g5rXVHgLgVwCwj2V2tNOj3kSKlrJQAm1AbuRqxjVPQ9IZj5AW4tS3GnMsgEUrKKz1Urc8o2Pll7eg7W2WsYwC//NnjEnkO9VdCwVUjFoDcOCEsN74gCBJrdinsCRywQl0iTejIrdvcWtx3vWU=
on:
tags: true
python: 3.6
condition: $ROOT == 'None' && $PANDAS == 'None' && $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$