This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
90 lines (78 loc) · 4.12 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
sudo: false
language: generic
env:
global:
- secure: TFvHncH5F75jn5uqhhetNoPSZAkgboeLO2+OcjCtLwEzGN9pvy/ElGubPtLIGIZedT826tJDgssRv4ZKF3K5dYcNRt9Oc86rc2V3uEnoLapH5ZirVEmVMKPc61D/cawgPVZchdU050GALtXg+k/pYeNzBng+I5VdOq8NdJWSKGAkaSVtNyNhDKLAnmPlagZcPxhGYmGe4HTodRb+4xh0KnMP5NS/AQFUbs1aEq8f6XLNuFAAk8Tp/1I5ryOJdqxyVNr/AoIe5+i/ZRlIEO9R/oh3TUoDmnjQNLuK9QeR4jvM7axh0vwe0WkA013JBhd0BzPx5OoiBBIOIqr7t0Sw//RiUTY9v9K/dL83lpCnwwmY1QgZg7+a8drtr+3Y24IaIygMWudOmTpH73+KVuGdBNaTRceAcbXBu2WMGzg0rzO6w70tKoEKYeOt3SaIW+tBrbRZ6b4BPdzcG3Ck7K4lij+UxUMV6S0WvizQGV5LgBbql5YFCcdoMMx+Ewz0vgc77p2gZXPcLTg6L/tn0VsUpjnrlUdF11d1oQBjhwNOcljgkFt88HXd6Ja5QTyQ3MMQibBBQvks7lAzmkxDi+FbrN9rEEg/kzTXwZ4HN0WYz6aQb5d0qzutgAaZMPgf0Z5YcVwyoA2batMddRrO4H3LEMXIA/5kEakHawWlx0Gppn4=
- secure: BFub0bTAiyuJSlY4xhG7gPDMn7z2aBcxdyX469xHkOGWNkx6X930wm8eHAy0skUDN2GxOMpTlPkizqdc5FPV2jatKRqoyvCMiH/8eYH0cddVFVtslV0e3CT15MzVTONoOge1exyOtzezyhaDZpO3BnTb8bjZdhazwnXwpUIgY6ERoqCTDspHhx8Ea9KyH/dqZuMWuRb6t0ko9UMfeW8N8CJ7CarkK7aHkJV2tvQ77YfZmrQZwvhpNhsPE63W+2fvlWa+HAXbrtKOsiJdmd7XpDBQlac2aXakgUaVfWtfvEJBAforF7L8Xngs207wPdvGPbr0quMPWfXESBJZgoYzn4gwCcUP9j6RiVTlNGZHAeacZDRCv8o0WSxpskGcRc59jE/aWI5eJd4wSDxXZHYgkUihN+nMe84zQsB/Go4QCjnq6pXV6dbBSvq/oCiuTwJr8DlA0WW5klsNqCleEv2pcihYBVkbbFFons3rFINTnZEJ8xf8d9jpl4pMaHPut6a7zSjtJJBaTeBtPy7X/rDVOrW2Iz++r0QfF4b+BU9Tjmk2EKFpPCkXqoQ4sUbAt9d97LqBsSBqdbpOy2P6WykTqPW02NxtinWALCavCvppYuDR2DYPAbaqLhHC0W2HIASsgMfKCtzOEkFkODRQwtiOGP+zUz+kZYeSsMsW8SzeyW0=
matrix:
include:
- os: linux
env: PYTHON="3.4"
- os: linux
env: PYTHON="3.5"
- os: linux
env: PYTHON="3.6"
- os: osx
env: PYTHON="3.4"
- os: osx
env: PYTHON="3.5"
- os: osx
env: PYTHON="3.6"
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ "$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"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --append channels cantera
- conda config --append channels bryanwweber
- conda config --append channels conda-forge
- conda update -q conda
- sed -i -e "s/\${PYTHON}/"${PYTHON}"/" environment.yml
- if [[ -z "$TRAVIS_TAG" ]]; then
conda env create -qf environment.yml;
source activate test-environment;
else
conda install -q conda-build anaconda-client;
fi
- conda info -a
- conda list
script:
- set -e
- if [[ -z "$TRAVIS_TAG" ]]; then
python setup.py test;
if [[ "$TRAVIS_OS_NAME" == "linux" && "$PYTHON" == "3.6" ]]; then
git checkout -- environment.yml;
conda install -q sphinx doctr;
python setup.py install;
cd docs;
make html SPHINXOPTS="-W";
cd ..;
doctr deploy .;
fi
else
conda build conda.recipe --python=${PYTHON};
anaconda -t $ANACONDA_TOKEN upload $HOME/miniconda/conda-bld/*/uconnrcmpy*.tar.bz2;
fi
- set +e
after_success:
- if [[ -z "$TRAVIS_TAG" ]]; then
bash <(curl -s https://codecov.io/bash);
fi
before_deploy:
- conda install pandoc
- pip install pypandoc
deploy:
provider: pypi
user: bryanwweber
password:
secure: "P5wZ/zqLblGwbaqc3RbX4daqLwO6QOpMri8V3sVdVQ2a4nN7NBTfK1xK44eIfECSLdDcsv40LJZPduvBI35CUdww2bwPN45zm5A8+Cz9C5ZPlvDwOe3BD8vuzKjFgyzxGhdVAwVVIiTWHOWesYTNFqUTLtcDqwFAvEyL8CVuA5d3FgtM72i0NUroMEDoizBBaT5PW5BWSyA0XyId4SqYGYYm4FOts+GUDed0CWGtKuoq424EvWG+385UCBzhdUwhIbSfI3Uii53OIX/HtD8WIz5pXL/+ryZ+RSam7bZw2xpsqiCyXpae9Hiq/Z2poUFQu24GFBDCNBfe+K8VfL9AlZ5xTHnyekSES8iT7Xswlf0mYoLt93ThQKCBIb3+3oVKRlFXBLHZHjq30OJAlFb4e3IOIONbdmmYh39No7MIjtEQIPQzyTQ3F88TbdSyCqk+3FQM2j8HYb/LXHxzYZ4bxTDTfSXkGFaLHH1VUHnejiuu0jpar+NwOJUQur2uq3Zuifj3ovLVtYee34XxLJF6AGG3NoGqrwGRKXotUhN5HLP27vzqoVFBQ3VzxtbnpTIMbKwW9qGkE3cQoK7irPMgLWwh794mYlUVkbW3tWXB0bApMCQ7+KRvozosW2paO4g2eYZ7SdNpLNXk5FN9SmcHSxTZ0AdbuLHNYGr7an1H3gI="
on:
tags: true
condition: $TRAVIS_OS_NAME == "linux" && $PYTHON == "3.6"
distributions: "sdist bdist_wheel"
skip_upload_docs: true