forked from SLACKHA/pyJac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (72 loc) · 3.38 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
sudo: false
env:
global:
# Anaconda token
- secure: "MIosF0J7Vcc2f+QI6pHR2CyDX/2t6wyxgkAA/OS7+JEsR9SeBlWld8Zds1t0V8j2BM9CULSaP/33kSLncjcr0SMd4CQtQANRsVZoYTlNbRJdvsHFIRBC9tmStzS3Sf0vhomvV/id+1mz3e+z+JH9fOkihWDanXpI+uDcffR7s/GELEWKgFLovTvHTvZeYWc4e4Vw9aS1xL2cQ8BhHPQzdbWJ5tJxZien8yLx3L7o1PU18QnVDyF4hGhDd6QiEXQalhZZWE7dgLG2mjh+BZve6j+I63fKyhltTnYany2e5y4D0g8njb8cUKA1QLRuLv0FCM8FVV3YP6Rh6AO+dd8Q/CQkPMDm/0wKqoEP8GrdtQ9ihwPDicTXawlFDr5cAJtjU4lPDSDjUeXB5B+Y1Ouh+60W+ZqHpu6ZXUrtaDO8Ul/rbiwjec+DuTnKEZ9nT+GNV9lF6gmZsRhDl4hQVs3xNNDVxu1tKw3ovXANeHnPFpUV6f5NplFEIuxRF1Zz0Ivp7VqxeKvUQMh6gN+OgGMrblVfY79dlcg9JMpbrTJkhflAkzDs/FCm3ClLfBsyZmtVbDatQKLa+db6EUCVG3fh95AW2W7TG2rjBIuAHYJzZUkWtC7RUkUBQ53GSYnBq13MCg2LHp0fwWVGXhVNFcF+r3IpPKgA+tY1pGuSiG30gB4="
language: generic
matrix:
include:
- os: linux
env: PYTHON="2.7"
- os: linux
env: PYTHON="3.5"
- os: linux
env: PYTHON="3.6"
- os: osx
env: PYTHON="2.7"
- os: osx
env: PYTHON="3.5"
- os: osx
env: PYTHON="3.6"
# Install packages
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 update -q conda
- conda config --append channels conda-forge
- conda config --append channels slackha
- conda config --append channels cantera
- if [[ -z "$TRAVIS_TAG" ]]; then
sed -i -e "s/\${PYTHON}/"${PYTHON}"/" test-environment.yaml;
conda env create -qf test-environment.yaml;
source activate test-environment;
else
conda install -q conda-build anaconda-client;
fi
# Useful for debugging any issues with conda
- conda info -a
- conda list
# command to run tests
script:
- set -e
- if [[ -z "$TRAVIS_TAG" ]]; then
python setup.py test;
if [[ "$PYTHON" == "3.6" && "$TRAVIS_OS_NAME" == "linux" ]]; then
git checkout -- test-environment.yaml;
python setup.py install;
fi
else
conda build conda.recipe --python=${PYTHON};
anaconda -t $ANACONDA_TOKEN upload $HOME/miniconda/conda-bld/*/pyjac*.tar.bz2;
fi
- set +e
before_deploy:
- conda install pandoc
- pip install pypandoc
deploy:
provider: pypi
user: kyleniemeyer
password:
secure: "YtILMpe9yVThS+lWZyEQDtvWC4HAKLTHGvwe8HgAvlZT8Ml8GobILg5OlWn7mdGBMxl5N7agvoy7aX1fylptipx86qdtTjIq4/iKvakMevSBfVeXhv4PH51M8ghXn7FeovQQaVOeOluT84xRjT7LAiHKgkAx8eJP4dzGDSjddOLf7jedzMPh2Sg3K/Voiw/zKdkAttW9QNHc8qAXEMLfOH521OFg8auBk4z2jcHTwgIex9rgPbCP4VILaF2kIYbGFLhwIIASnLcyVt3bxyw32cDKMK6Nyk3f5sRlF+F31U4GkdcW8PC5ZIHlhyVjGTCjk37nOmSbrA4VLsJAA8Wy+Ry4w277G5HFP0HwFd6QsOupC7f/RPEDKiJFiKwczHNYpcXNr+DzcS7/bzpiCAByWyJ7/y1YWV/sGZk8NxGcDkG7c5L/Ka1EI3/8A8DxCSmapRe64QpqIMmXcF+j0SjvfvtVlAesH1pLPrQzl9X8dx7t9cwtr4fkJDEI4v5fm3wJRp/ARj7bTJiHf3/hOrRd0PWFeD61xRYHb3hmnZeybFztoZ5LshGmgUHrIzPDbP/Go1zb/7t6n9n6wz5QLmqI6RZ8IToGDqxx2PxxhX+AZgeEXtv1d/lNlqcIcZMlTkAyytIUF1kOJq7YItxJ8qbmswJulQiybGlkd8UM3ui4G/E="
on:
tags: true
condition: $TRAVIS_OS_NAME == "linux" && $PYTHON == "3.6"
distributions: "sdist bdist_wheel"
skip_upload_docs: true