-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (35 loc) · 1.1 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
notifications:
email: false
os: linux
dist: trusty
language: python
sudo: True
matrix:
include:
- python: '3.6'
os: linux
- python: '3.6'
os: linux
env:
- CONDA_BUILD=1
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget http://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-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
- conda config --set auto_update_conda False
- conda update -q --all
- conda install pytest pytest-cov pytest-mock pyyaml click future jinja2 conda-package-handling
- if [[ "$CONDA_BUILD" == "1" ]]; then
conda install -q conda-build && conda remove -q conda-build && git clone https://github.com/conda/conda-build && pushd conda-build && pip install -e . && popd ;
fi
- python setup.py install
script:
- pytest -v --cov=. --cov-report term-missing
- pip install codecov
- codecov