forked from alphatwirl/alphatwirl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (54 loc) · 2.4 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#sudo: false
# travis-ci.org build & test configuration
language: python
matrix:
include:
- python: 3.8
env: ROOT=6.20.2 PANDAS=1.0.3
- python: 3.7
env: ROOT=6.20.2 PANDAS=1.0.3
- python: 3.7
env: ROOT=None PANDAS=None
- python: 3.6
env: ROOT=6.20.2 PANDAS=1.0.3
allow_failures:
install:
- if [ "$ROOT" != "None" ]; then
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;
source "$HOME/miniconda/etc/profile.d/conda.sh";
conda config --set always_yes yes --set changeps1 no;
conda config --add channels conda-forge;
conda config --set channel_priority strict;
conda config --set show_channel_urls yes;
conda create -q -n testenv python=${TRAVIS_PYTHON_VERSION%-*};
conda activate testenv;
if [ "$ROOT" != "None" ]; then
conda install root="${ROOT}";
fi;
conda info -a;
root -b -q;
fi
- pip install --upgrade pip
- pip install -e '.[tests]'
- if [ "$PANDAS" != "None" ]; then
pip install pandas=="${PANDAS}";
fi
- pip install codecov
script:
- pytest --cov
after_success:
- coverage combine
- codecov
cache: apt
deploy:
provider: pypi
user: tai.sakuma
distributions: sdist bdist_wheel
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.7
condition: $ROOT == 'None' && $PANDAS == 'None' && $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$