/
.travis.yml
53 lines (46 loc) · 1.41 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
language: minimal
sudo: false
matrix:
fast_finish: true
include:
- name: "python-3.6"
env: PY=3.6
- name: "python-3.7"
env: PY=3.7
- name: "tarball"
env: PY=3.7
before_install:
# Install miniconda and create TEST env.
- |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
export DLPATH=`pwd`
conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
conda update --quiet conda
conda config --add channels conda-forge --force
conda config --set channel_priority strict
conda config --set safety_checks disabled
conda create --name TEST python=$PY --file requirements.txt --file requirements_docs.txt --file requirements_tests.txt
source activate TEST
conda info --all
install:
- pip install -e . --no-deps --force-reinstall
script:
- if [[ $TRAVIS_JOB_NAME == python-* ]]; then
travis_wait 45 pytest --cov tobler ;
fi
- if [[ $TRAVIS_JOB_NAME == 'tarball' ]]; then
pip wheel . -w dist --no-deps ;
twine check dist/* ;
fi
notifications:
email:
recipients:
- sjsrey+travis@gmail.com
- knaaptime+travis@gmail.com
- renanxcortes+travis@gmail.com
on_change: always
on_failure: always
after_success:
- coveralls