-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
61 lines (53 loc) · 2.88 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
sudo: false
env:
global:
- secure: "BJScAQqZ93wF2MTL/52lsz9NN7einCoKC5SvdOzQ+MBGO6DOdEql3DqHPrys5xUHX0bejvdVbknS4GP5lRM+iv0+TF7jGz1FGCOA33WocOXMM7GxGAZq3Arnk9R2efNc0RplnF0kVQqOKa1hYtLmFCf9SZRltKCScewr1vKKf8k4R9egciSK+QTFZa+njCxFEVYJAOyifCukqcPRx1L7hJn2od0oaRctSRWhdWl8gPKAP4JLMdWqgmXEuDG3pTm8vq6JM2W7fhEXdlNr8P+txowGKBDw47m0LJc9q6ReH7FnqcpWMXdsIxGEeBd1nzvpqeNbBSKFwcEjqWKMqeImaySaVvSbcnLFZzU2MPb20sWRGiqP1oN8scQDnTG57hL/DeVY6gM7SFXZxD3akpvl865zNO9PlG4sCdANZv/ZEwSqAcMEQAXa32R1//iP+36HB6PHcNbDsi3o17/kfJRBnG7EFeLMfapyM1WiD5FJ39nS7MaLAIDFYus68J+VK/szpUjpL0623l2+RbmcQ660WGR+RV5mL/n6xtcCOTKnGRiVhvnYpqTAvU+jg2DBXlXWGTztZCqPoOHBtlVA+vwO7SYTl3W1/2ECPP6ogx6YRYjcasD/sj8Z8P8cbtpqSmPwR0D7J+vz+DX8qf01aG3NETcgGXhFq6i/WpRbUEXpK1U="
- secure: "xO8U5JnHh+suRr0sSY7blEzyYPbO0SlzrMosKEq7Ohn3FBKV3FH51OfplG6vDI3FWs6q7mmTABsAnEq+ExypqOLPGno2xdEOs3isq0JV+OvoUVtSTyBE+DaM6kTEM7O1hLN361J+VKoKJ5c9SG9rv1+GtT2FNeONy86zC/nKyowe3ywMBUQBp+wm6g/OWsdsOlYm1n8f6U5E8AEdMWGuXe+BfjGsl1rUJdfLpl9H0Xyb7q1kFQcffZSls2vjmoTxvdmD3mLz6JsC+hBX3wGPD6929eC4puAffuTwFtlufJSvYYOYm36/gakzgpPATWlpCqXCKNUR/gj/dkesUcRqUJTKS0riy+7+OpeOI3y5UT+/bXuTA1+J/w6oRyg85jLMxrnSOBOV6kVQfbLHqSSmup2N/8chlPlAz66Cg7j4NqdZ9yvz9hQCgv0KzXmzefHcXqNrQ9tCSwbpO0xyItcHAXAuMRXk4mNeweIaisrXMbnnbclM5PVyRSpHDMwAURzxZ7bkw9qq4CH1gh6Uxso4ARy7aojItwZCJydUDDJqTx5BwooKcalIJzpExij+sBjTwjY6qAsb2cDiPJ4hS/pjMdmr9ZeN6JrfuVjMrqb2jHS9M0ZRfYm6KDLoR04ZPF/pOncWSs8DYft+6P+24hZ6AXvp2xlU5dYw+N6r+PPF4nY="
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:
- 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
- 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=./;
flake8 .;
fi
- set +e
after_success:
- if [[ -z "$TRAVIS_TAG" ]]; then
bash <(curl -s https://codecov.io/bash);
fi