-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
96 lines (87 loc) · 4.54 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
91
92
93
94
95
96
sudo: false
env:
global:
# Doctr token
- secure: "CE68N8pVwz8X3Ot0KPXtUg8y5oPbJpwkaNyq1nyFKcdhYKoT0EFE5KjaSaNYgYgHojMpQvdhSLtdBpbDoqqDjwyw1N06rndZpVhxhoq8BDmFLs02pN/+w7ihKH73w5aYAqFVCNAF0WW9nLFn2Sg+948V9XlSe4XxH9a1paw8C9wGLF4XbyObGLV4ej1oxv7XDx4//ehOBZDjuVdfZYRZ65HFb+AIQD9OUlZ6aEHczNyQ8sAQxwTdRayWbRY+kjB8Oaa8chtEa/sfQLGnAMQTuxomTD5D40B2AiMbt53BWT2rDgih5Y8padpIGiDgCSQL+XtGlPsRLv/Wr3k9oRpJ1fwGEdBHC4Zn+J6nIy7xGPFEbvCOMbYI0Ie34bqEYZfu+E6bVwbLqMDKo+sZ+mMkrwCPVMKQoWMyx8cYuP0oMKlyAYYYK0V9YGjqgszmLaIDogP/aUMPBN9s92P4VURlhpDuFvAeGpEGT1cb/8deWShMXvx2NCvDsjRCYFZ73qcPxkA1VI03T25gjOBvbnreKltuu17Mteq1i7Gk/ULDvJNGMYrd/2ap/wiAXjFM3sGSDN5LKMCqQNHbzx438Q0Wu12TT85g9bDWAlMMawKxXRCFasbHZJmTJ9vC2c1xtbRyhPf6eiP4RG1EiPX0Y3DpZq9neUfX7wvtd4VL3gZOhBo="
# Anaconda token
- secure: "Zw2JaCjPxhsa0sUW75yET13oG35Wh8kzM8ABAWhqr4V/MlAoc7IE+aEN+lVkJ0b2cUvA0624mdboJ8VBEqBPdC0M+FZfroSUUd0mwhg4sZQKor0ipjn07G3SDThLmh/oan0zPDj3GNAaHVixwYsLUG1GpDbKX//6Eq3F9YmC4/fOQo7gaEpSCZq+T2vTQhYDGxfLUYWrNbdmRzyyqmd7U8tWZvyW8wHNVsVf9k5RqSnBY45F5ohe7EwELusYbJ7GgIyGI35kVx09YvIvOciSSHuASQljo7q90eMs15DSHyddU80b9SPBJytMGGkDzzotKqJ1PaDGBQjN4MfO5WfnLfVBahJnJf6aIvWo97PFmLok7dKMgJagPy5yo2jm2RlB61lVpxBdHZWoKgZE7g9LBw2CvuuwCfLBmBLv0QZAM7ICrDQKzutH7Gji2uCnNu/4ez24yoyZKifPkGhEUkkFGcNUDwKaQlwf/0Nvr8GLAVsCEySf9G+CFedwsVCENIOSCb7E6ZlyLVeBsX0fKkc4l095yDqjLzJLViXax3eOkCwmD/41/++ScB7j2prGk9JAt4tyxZ175y5Z7MlFTe7saa4+CeoXqiDvYzBtKewdjVu9mVOmKpaG9liIfuJ7OAq8ihdZGK6in7VgEMSam5Z8nrM8nqw84qyd6TXysb7N2Ng="
language: generic
matrix:
include:
- os: linux
env: PYTHON="3.5"
- os: linux
env: PYTHON="3.6"
- 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
- rm miniconda.sh
- source $HOME/miniconda/etc/profile.d/conda.sh && conda activate
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda update -q --all
- conda config --append channels conda-forge
- conda config --append channels cantera
- conda config --append channels pr-omethe-us
- if [[ -z "$TRAVIS_TAG" ]]; then
sed -i -e "s/\${PYTHON}/"${PYTHON}"/" test-environment.yaml;
conda env create -qf test-environment.yaml;
conda activate py${PYTHON};
else
if [[ "$PYTHON" == "3.6" && "$TRAVIS_OS_NAME" == "linux" ]]; then
conda env update -qn base -f build-environment.yaml;
fi
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
pytest -vv --cov=./;
if [[ "$PYTHON" == "3.6" && "$TRAVIS_OS_NAME" == "linux" ]]; then
git checkout -- test-environment.yaml;
conda install -q sphinx doctr nbsphinx ipython;
python setup.py install;
cd docs;
make html SPHINXOPTS="-W";
cd ..;
doctr deploy devel;
fi
else
if [[ "$PYTHON" == "3.6" && "$TRAVIS_OS_NAME" == "linux" ]]; then
conda build conda.recipe;
anaconda -t $ANACONDA_TOKEN upload $HOME/miniconda/conda-bld/*/pyteck*.tar.bz2;
python setup.py install;
cd docs;
make html SPHINXOPTS="-W";
cd ..;
doctr deploy --build-tags .;
doctr deploy --build-tags "tags/${TRAVIS_TAG}";
fi
fi
- set +e
after_success:
- if [[ -z "$TRAVIS_TAG" ]]; then
bash <(curl -s https://codecov.io/bash);
fi
deploy:
provider: pypi
user: kyleniemeyer