-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
39 lines (30 loc) · 964 Bytes
/
.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
language: python
python:
- 3.6
install:
- sudo apt-get update
# install miniconda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- 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 config --add channels conda-forge
- conda update -q conda
- conda info -a
# install conda-build in order to build the conda package
- conda install conda-build
- conda config --set anaconda_upload no
# creat the "geoist" environment
- conda env create --name geoist --file environment.yml
- source activate geoist
# install additional requirements
- pip install codecov
- pip install pytest-cov
# build conda package
# - conda-build conda_recipe/meta.yaml -c defaults -c conda-forge
# - conda install geoist --use-local
script:
- pytest --cov=./
after_success:
- codecov