forked from SciTools/cf-units
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (36 loc) · 1.21 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
language: minimal
env:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.6
- PYTHON_VERSION=3.7
- PYTHON_VERSION=3.8
install:
# Install miniconda
# -----------------
- export CONDA_BASE=http://repo.continuum.io/miniconda/Miniconda
- if [[ "${PYTHON_VERSION}" == 2* ]]; then
wget ${CONDA_BASE}2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget ${CONDA_BASE}3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p ${HOME}/miniconda
- export PATH="${HOME}/miniconda/bin:${PATH}"
# Create the basic testing environment
# ------------------------------------
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls True
- conda update --quiet conda
- conda config --add channels conda-forge
- ENV_NAME='test-environment'
- conda create --name ${ENV_NAME} --quiet python=${PYTHON_VERSION} udunits2 pip
- source activate ${ENV_NAME}
- pip install -r requirements.txt -r requirements-dev.txt
# Output debug info.
- conda list -n ${ENV_NAME}
- conda list -n ${ENV_NAME} --explicit
- conda info -a
# cf_units.
- PREFIX=${HOME}/miniconda/envs/${ENV_NAME}
- CYTHON_COVERAGE=1 pip install -e .
script:
- pytest
after_success: coveralls